Remove a NotImplementedError and a bit of code where we don't seem to pass anymore

This commit is contained in:
Dave Halter
2019-05-20 09:20:49 +02:00
parent 70527d7329
commit beacb58eb1

View File

@@ -204,9 +204,6 @@ class Importer(object):
self._inference_possible = True
if level:
base = module_context.py__package__()
if base == [''] or base == ['__main__']:
raise NotImplementedError(module_context.py__package__())
base = []
# We need to care for two cases, the first one is if it's a valid
# Python import. This import has a properly defined module name
# chain like `foo.bar.baz` and an import in baz is made for