Skip to content

Commit

Permalink
Fix regression with empty package names python#4111
Browse files Browse the repository at this point in the history
  • Loading branch information
matzipan authored Oct 13, 2017
1 parent 64c8ca0 commit 4c2e383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def visit_Import(self, n: ast3.Import) -> Import:
def visit_ImportFrom(self, n: ast3.ImportFrom) -> ImportBase:
assert n.level is not None
if len(n.names) == 1 and n.names[0].name == '*':
assert n.module is not None
assert n.module is not ''
i = ImportAll(n.module, n.level) # type: ImportBase
else:
i = ImportFrom(self.translate_module_id(n.module) if n.module is not None else '',
Expand Down

0 comments on commit 4c2e383

Please sign in to comment.