summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-05-25 14:45:38 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2016-05-25 14:45:38 +0100
commit72cb2ddff884b7dc03dd8c8365b260caca4e80d8 (patch)
treef23175f9cc7b91e021ce735d71d9a1a5877ddf51 /astroid/modutils.py
parent49e868601fc9a4fe0384d28daf2855aff49f2b20 (diff)
downloadastroid-git-72cb2ddff884b7dc03dd8c8365b260caca4e80d8.tar.gz
Stop saving assignment locals in ExceptHandlers, when the context is a store.
This fixes a tripping case, where the RHS of a ExceptHandler can be redefined by the LHS, leading to a local save. For instance, ``except KeyError, exceptions.IndexError`` could result in a local save for IndexError as KeyError, resulting in potential unexpected inferences. Since we don't lose a lot, this syntax gets prohibited.
Diffstat (limited to 'astroid/modutils.py')
0 files changed, 0 insertions, 0 deletions