Support case like from os.path import join as pjoin
This commit is contained in:
1 parent
6fb42e5f4b
commit
fc79f0e258
2 files changed
+7
-1
No files matched your search
+2
-1
@@ -576,7 +576,8 @@ class Interpreter(Script):
|
||||
# Import functions and classes
|
||||
module = getattr(obj, '__module__', None)
|
||||
if module:
|
||||
fakeimport = self._make_fakeimport(module, variable)
|
||||
fakeimport = self._make_fakeimport(module, obj.__name__,
|
||||
variable)
|
||||
scope.add_import(fakeimport)
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user