forked from VimPlug/jedi
re-enable the interpretation of the None keyword
This commit is contained in:
@@ -13,7 +13,8 @@ def next(iterator, default=None):
|
||||
else:
|
||||
return iterator.__next__()
|
||||
else:
|
||||
return default
|
||||
if default is not None:
|
||||
return default
|
||||
|
||||
|
||||
def iter(collection, sentinel=None):
|
||||
|
||||
@@ -39,11 +39,6 @@ class NameFinder(object):
|
||||
|
||||
@debug.increase_indent
|
||||
def find(self, scopes, resolve_decorator=True, search_global=False):
|
||||
if unicode(self.name_str) == 'None':
|
||||
# Filter None, because it's really just a keyword, nobody wants to
|
||||
# access it.
|
||||
return []
|
||||
|
||||
names = self.filter_name(scopes)
|
||||
types = self._names_to_types(names, resolve_decorator)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user