mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
stree.parse(): Beautify debug logging
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
08045442e2
commit
3cd7926693
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def _cleanup_line(line: str) -> str:
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def parse(s: str, allow_full_lines: bool=True, root_content: str='root') -> StringTree: # export
|
def parse(s: str, allow_full_lines: bool=True, root_content: str='root') -> StringTree: # export
|
||||||
slog(DEBUG, "parsing", s)
|
slog_m(DEBUG, "--->--- parsing --->---\n" + s + "\n---<--- parsing ---<---\n")
|
||||||
root = StringTree('', content=root_content)
|
root = StringTree('', content=root_content)
|
||||||
sec = ''
|
sec = ''
|
||||||
for line in s.splitlines():
|
for line in s.splitlines():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue