Commits

Anonymous committed 0b8fc5f

finderrors: minor clean up

Comments (0)

Files changed (1)

rope/contrib/finderrors.py

             name = node.attr
         else:
             name = node.id
-        if name in ['None']:
-            return
-        error = Error(node.lineno, msg + ' ' + name)
-        self.errors.append(error)
+        if name != 'None':
+            error = Error(node.lineno, msg + ' ' + name)
+            self.errors.append(error)
 
     def _is_defined_after(self, scope, pyname, lineno):
         location = pyname.get_definition_location()