summaryrefslogtreecommitdiff
path: root/rebuilder.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-03-22 10:11:20 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-03-22 10:11:20 +0100
commitec4ce3ab0dc8d3e48867ccdc3d928d2486d59599 (patch)
tree420bcb7588e9a4a983c81c52e725b9da8c50bebf /rebuilder.py
parent975cecee7a11c34da5cce5df05571566ac978bda (diff)
downloadastroid-git-ec4ce3ab0dc8d3e48867ccdc3d928d2486d59599.tar.gz
make pylint happier : mention node attributes
* mention node attributes in the classes to make pylint happier * set doc and name for Class, Function and Module in the constructor --HG-- branch : rebuild
Diffstat (limited to 'rebuilder.py')
-rw-r--r--rebuilder.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/rebuilder.py b/rebuilder.py
index 14f2a996..90b31b6b 100644
--- a/rebuilder.py
+++ b/rebuilder.py
@@ -101,7 +101,6 @@ class RebuildVisitor(object):
"""visit a Class node to become astng"""
self._metaclass.append(self._metaclass[-1])
newnode = self._visit_class(node, parent)
- newnode.name = node.name
metaclass = self._metaclass.pop()
if not newnode.bases:
# no base classes, detect new / style old style according to
@@ -142,7 +141,7 @@ class RebuildVisitor(object):
def _store_from_node(self, node):
"""handle From names by adding them to locals now or after"""
- # we can not call handle wildcard imports if the source module is not
+ # we can not handle wildcard imports if the source module is not
# in the cache since 'import_module' calls the MANAGER and we will
# end up with infinite recursions working with unfinished trees
if node.modname in self._manager._cache:
@@ -175,7 +174,6 @@ class RebuildVisitor(object):
"""visit an Function node to become astng"""
self._global_names.append({})
newnode = self._visit_function(node, parent)
- newnode.name = node.name
self._global_names.pop()
frame = newnode.parent.frame()
if isinstance(frame, nodes.Class):