mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 03:57:05 +08:00
The import path can be a list as well as a tuple. Deal with it.
This commit is contained in:
1 parent
45941a7006
commit
c26f740dcd
1 file changed
+1
-1
@@ -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