Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Yasin <[email protected]>
  • Loading branch information
Y-T-G authored Jan 16, 2025
1 parent c8b092f commit d431de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoimport/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __exit__(self, *args):
# Now that builtins is restored, we can load any modules that need loading
for name, lazy_module in self._lazy_modules.items():
if "." in name:
parts = s.split('.')
parts = name.split('.')
parents = ['.'.join(parts[:i]) for i in range(1, len(parts))]
for parent in parents:
p = self._globals.get(parent, None)
Expand Down

0 comments on commit d431de9

Please sign in to comment.