diff options
| author | Torsten Marek <tmarek@google.com> | 2013-11-05 22:50:45 -0800 | 
|---|---|---|
| committer | Torsten Marek <tmarek@google.com> | 2013-11-05 22:50:45 -0800 | 
| commit | 126b33ad7325626ead8d4cf614883adebdc8c66f (patch) | |
| tree | 7d3a097150abfbf1d13ad77b88189a7642211798 /checkers/utils.py | |
| parent | 1839d48d6c909c9d23d68cb59a5fcdef53107287 (diff) | |
| download | pylint-git-126b33ad7325626ead8d4cf614883adebdc8c66f.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.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/checkers/utils.py b/checkers/utils.py index a06440496..72a9733d9 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): | 
