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
I have a code in https:/ /github. com/kevinw/ pyflakes/ pull/28 /github. com/saper/ pyflakes/ commit/ 09c52fcfab742b4 f67c9d21d18ae38 9c300b4ea6) to fix another bug https:/ /bugs.launchpad .net/pyflakes/ +bug/916264 but there is a code to detect if instructions are on different sides /else:" . I think this approach could be applied to this case as well.
(https:/
of "if:" and "else:" or "try:/except:
More info about how it works here:
https:/ /code.launchpad .net/~dobey/ divmod. org/pyflakes- less-redef/ +merge/ 130183/ comments/ 307409