contextl 1.2.31 → 1.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/python/import_parser.py +4 -1
package/package.json
CHANGED
package/python/import_parser.py
CHANGED
|
@@ -847,7 +847,10 @@ def parse_imports(scan_result: ScanResult) -> ParseResult:
|
|
|
847
847
|
for sym in symbols_str.split(','):
|
|
848
848
|
sym = sym.split(' as ')[0].strip()
|
|
849
849
|
if sym and sym != '*':
|
|
850
|
-
|
|
850
|
+
if base.endswith("."):
|
|
851
|
+
extra.append(f"{base}{sym}")
|
|
852
|
+
else:
|
|
853
|
+
extra.append(f"{base}.{sym}")
|
|
851
854
|
# Merge without duplicates
|
|
852
855
|
seen = set(raw_imports)
|
|
853
856
|
for e in extra:
|