diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-25 14:45:38 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-25 14:45:38 +0100 |
commit | 72cb2ddff884b7dc03dd8c8365b260caca4e80d8 (patch) | |
tree | f23175f9cc7b91e021ce735d71d9a1a5877ddf51 /astroid/modutils.py | |
parent | 49e868601fc9a4fe0384d28daf2855aff49f2b20 (diff) | |
download | astroid-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