mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 09:48:36 +08:00
The import path can be a list as well as a tuple. Deal with it.
This commit is contained in:
@@ -218,7 +218,7 @@ class Importer(object):
|
|||||||
debug.warning('Attempted relative import beyond top-level package.')
|
debug.warning('Attempted relative import beyond top-level package.')
|
||||||
else:
|
else:
|
||||||
# Here we basically rewrite the level to 0.
|
# Here we basically rewrite the level to 0.
|
||||||
import_path = tuple(base) + import_path
|
import_path = tuple(base) + tuple(import_path)
|
||||||
self.import_path = import_path
|
self.import_path = import_path
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user