mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Remove a NotImplementedError and a bit of code where we don't seem to pass anymore
This commit is contained in:
@@ -204,9 +204,6 @@ class Importer(object):
|
|||||||
self._inference_possible = True
|
self._inference_possible = True
|
||||||
if level:
|
if level:
|
||||||
base = module_context.py__package__()
|
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
|
# 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
|
# Python import. This import has a properly defined module name
|
||||||
# chain like `foo.bar.baz` and an import in baz is made for
|
# chain like `foo.bar.baz` and an import in baz is made for
|
||||||
|
|||||||
Reference in New Issue
Block a user