mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 13:32:20 +08:00
Use compatible syntax
This commit is contained in:
@@ -168,7 +168,8 @@ def _iter_modules(paths, prefix=''):
|
|||||||
importer = pkgutil.get_importer(path)
|
importer = pkgutil.get_importer(path)
|
||||||
|
|
||||||
if not isinstance(importer, importlib.machinery.FileFinder):
|
if not isinstance(importer, importlib.machinery.FileFinder):
|
||||||
yield from pkgutil.iter_modules([path], prefix)
|
for mod_info in pkgutil.iter_modules([path], prefix):
|
||||||
|
yield mod_info
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if importer.path is None or not os.path.isdir(importer.path):
|
if importer.path is None or not os.path.isdir(importer.path):
|
||||||
|
|||||||
Reference in New Issue
Block a user