Skip to content

Commit

Permalink
comments out obsolete sys_version_info_hack import; debug tip for tra…
Browse files Browse the repository at this point in the history
…cing debug_init call stack
  • Loading branch information
Tom O'Hara committed Nov 4, 2023
1 parent 91de703 commit da3420d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mezcla/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
import time

# Local packages
# note: The following redefines sys.version_info to be python3 compatible;
# this is used in _to_utf8, which should be reworked via six-based wrappers.
import mezcla.sys_version_info_hack # pylint: disable=unused-import
## OLD:
## # note: The following redefines sys.version_info to be python3 compatible;
## # this is used in _to_utf8, which should be reworked via six-based wrappers.
## import mezcla.sys_version_info_hack # pylint: disable=unused-import


# Constants for pre-defined tracing levels
Expand Down Expand Up @@ -1057,6 +1058,7 @@ def debug_init():
"""Debug-only initialization"""
time_start = time.time()
trace(DETAILED, f"in debug_init(); {timestamp()}")
## DEBUG: trace_values(8, inspect.stack(), max_len=256)
# note: shows command invocation unless invoked via "python -c ..."
command_line = " ".join(sys.argv)
assertion(command_line)
Expand Down

0 comments on commit da3420d

Please sign in to comment.