summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-11-05 22:50:45 -0800
committerTorsten Marek <tmarek@google.com>2013-11-05 22:50:45 -0800
commit07fb78c5ffe1edffb362689a809d909039d1e70b (patch)
tree424d1973468b63c030b08a2833ac87416d804bde /checkers/utils.py
parent255208c56bc3e9f1cb2cfc2abc78cbabb5cda971 (diff)
downloadpylint-07fb78c5ffe1edffb362689a809d909039d1e70b.tar.gz
Fix a potential crash in the redefine-in-handler warning if the
redefined name is a nested getattr node.
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index a064404..72a9733 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -60,7 +60,7 @@ def clobber_in_except(node):
(False, None) otherwise.
"""
if isinstance(node, astroid.AssAttr):
- return (True, (node.attrname, 'object %r' % (node.expr.name,)))
+ return (True, (node.attrname, 'object %r' % (node.expr.as_string(),)))
elif isinstance(node, astroid.AssName):
name = node.name
if is_builtin(name):