None issue fix for static analysis

This commit is contained in:
Dave Halter committed 2014-05-13 01:21:32 +02:00
1 parent 00e43d4585
commit a2b483b4f5
5 files changed
+14 -8

No files matched your search

+5
View File
@@ -35,6 +35,11 @@ class NameFinder(object):
self.position = position
def find(self, scopes, resolve_decorator=True):
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)