Skip to content

Commit fa6f127

Browse files
authored
Merge pull request #156 from skogsbaer/fix-import-without-whitespace
Also detect import* in visualization
2 parents c4f0cbe + 9774af5 commit fa6f127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytrace-generator/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def eprint(*args, **kwargs):
1616
print(*args, file=sys.stderr, **kwargs)
1717

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

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

0 commit comments

Comments
 (0)