Comment 2 for bug 885140

Revision history for this message
Marcin Cieślak (saperski) wrote :

I have a code in https://github.com/kevinw/pyflakes/pull/28
(https://github.com/saper/pyflakes/commit/09c52fcfab742b4f67c9d21d18ae389c300b4ea6) to fix another bug https://bugs.launchpad.net/pyflakes/+bug/916264 but there is a code to detect if instructions are on different sides
of "if:" and "else:" or "try:/except:/else:". I think this approach could be applied to this case as well.

More info about how it works here:

https://code.launchpad.net/~dobey/divmod.org/pyflakes-less-redef/+merge/130183/comments/307409