summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-06 16:55:12 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-06 16:55:12 +0100
commit858ff5c3c4a491c754cbf95baa01d112ce6cd749 (patch)
tree138f3aa80a7889598e32af92c27703d3b0470cf9
parentf338645e491104f0200f3ab87b18ad1a779f965e (diff)
downloadpylint-git-858ff5c3c4a491c754cbf95baa01d112ce6cd749.tar.gz
remove code that's out commented since rev 0
-rw-r--r--checkers/variables.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index c9bc1cddb..b292a2103 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -456,31 +456,6 @@ builtins. Remember that you should avoid to define new builtins when possible.'
continue
self._check_module_attrs(node, module, name.split('.'))
-## def leave_getattr(self, node):
-## """check modules attribute accesses
-
-## this function is a "leave_" because when parsing 'a.b.c'
-## we want to check the innermost expression first.
-## """
-## if isinstance(node.expr, astng.Name):
-## try:
-## module = node.expr.infer().next()
-## except astng.InferenceError:
-## return
-## if not isinstance(module, astng.Module):
-## # Not a module, don't check
-## return
-## elif self._checking_mod_attr is not None:
-## module = self._checking_mod_attr
-## else:
-## return
-## self._checking_mod_attr = self._check_module_attrs(node, module,
-## [node.attrname])
-
-## def leave_default(self, node):
-## """by default, reset the _checking_mod_attr attribute"""
-## self._checking_mod_attr = None
-
def _check_module_attrs(self, node, module, module_names):
"""check that module_names (list of string) are accessible through the
given module