s+: fix '_generate_line_text' typo
This commit is contained in:
parent
2ee8e4a3f5
commit
9549097d6c
11
surplus.py
11
surplus.py
|
@ -475,7 +475,9 @@ class Behaviour(NamedTuple):
|
||||||
exceptions are handled by the caller.
|
exceptions are handled by the caller.
|
||||||
reverser: Callable[[str], dict[str, Any]]
|
reverser: Callable[[str], dict[str, Any]]
|
||||||
Latlong object to dictionary function, must take in a string and return a
|
Latlong object to dictionary function, must take in a string and return a
|
||||||
dict. exceptions are handled by the caller.
|
dict. keys found in SHAREABLE_TEXT_LINE_*_KEYS used to access address details
|
||||||
|
are placed top-level in the dict. exceptions are handled by the caller. see
|
||||||
|
the playground notebook for example output.
|
||||||
stderr: TextIO = stderr
|
stderr: TextIO = stderr
|
||||||
TextIO-like object representing a writeable file. defaults to sys.stderr.
|
TextIO-like object representing a writeable file. defaults to sys.stderr.
|
||||||
stdout: TextIO = stdout
|
stdout: TextIO = stdout
|
||||||
|
@ -798,7 +800,7 @@ def _generate_text(
|
||||||
if filter_status := all(detail_check := filter(detail)) is True:
|
if filter_status := all(detail_check := filter(detail)) is True:
|
||||||
if debug:
|
if debug:
|
||||||
behaviour.stderr.write(
|
behaviour.stderr.write(
|
||||||
"debug: _generate_line_text: "
|
"debug: _generate_text_line: "
|
||||||
f"{str(detail_check):<20} -> {str(filter_status):<5} "
|
f"{str(detail_check):<20} -> {str(filter_status):<5} "
|
||||||
f"-------- '{detail}'\n"
|
f"-------- '{detail}'\n"
|
||||||
)
|
)
|
||||||
|
@ -808,7 +810,7 @@ def _generate_text(
|
||||||
else: # filter function returned False, so element is filtered/skipped
|
else: # filter function returned False, so element is filtered/skipped
|
||||||
if debug:
|
if debug:
|
||||||
behaviour.stderr.write(
|
behaviour.stderr.write(
|
||||||
"debug: _generate_line_text: "
|
"debug: _generate_text_line: "
|
||||||
f"{str(detail_check):<20} -> {str(filter_status):<5}"
|
f"{str(detail_check):<20} -> {str(filter_status):<5}"
|
||||||
f" filtered '{detail}'\n"
|
f" filtered '{detail}'\n"
|
||||||
)
|
)
|
||||||
|
@ -852,6 +854,9 @@ def _generate_text(
|
||||||
if detail != ""
|
if detail != ""
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if debug:
|
||||||
|
behaviour.stderr.write(f"debug: {seen_names=}\n")
|
||||||
|
|
||||||
general_global_info: list[str] = [
|
general_global_info: list[str] = [
|
||||||
str(location.get(detail, "")) for detail in st_line6_keys
|
str(location.get(detail, "")) for detail in st_line6_keys
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue