mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-09 18:31:27 +08:00
Completely remove names_dicts from the diff parser.
This commit is contained in:
@@ -91,7 +91,7 @@ class NameFinder(object):
|
||||
def filter_name(self, filters):
|
||||
"""
|
||||
Searches names that are defined in a scope (the different
|
||||
`names_dicts`), until a name fits.
|
||||
``filters``), until a name fits.
|
||||
"""
|
||||
names = []
|
||||
if self._context.predefined_names:
|
||||
|
||||
@@ -168,6 +168,7 @@ def get_module_names(module, all_scopes):
|
||||
if all_scopes:
|
||||
dct = module.used_names
|
||||
else:
|
||||
raise DeprecationWarning
|
||||
dct = module.names_dict
|
||||
return chain.from_iterable(dct.values())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user