Skip to content

Commit

Permalink
Merge pull request #156 from skogsbaer/fix-import-without-whitespace
Browse files Browse the repository at this point in the history
Also detect import* in visualization
  • Loading branch information
skogsbaer authored Nov 22, 2024
2 parents c4f0cbe + 9774af5 commit fa6f127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytrace-generator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)

type_name_regex = re.compile("<class '(?:__main__\\.)?(.*)'>")
import_regex = re.compile(r"^(?:[^'\"]+\s)?import ")
import_regex = re.compile(r"^(?:[^'\"]+\s)?import[\s*]")

# Frame objects:
# https://docs.python.org/3/reference/datamodel.html#frame-objects
Expand Down

0 comments on commit fa6f127

Please sign in to comment.