divmod-dev team mailing list archive
-
divmod-dev team
-
Mailing list archive
-
Message #00267
[Bug 800691] Re: False positive redefinition with functions defined in conditionals
It looks like #916264 is about RedefinedWhileUnused while this is about
the generic Redefined
Maybe they can be solved from one go... I will check to see what can be done.
--
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/800691
Title:
False positive redefinition with functions defined in conditionals
Status in Pyflakes:
New
Bug description:
Such code:
def f(a):
if a:
def g(): pass
else:
def g(): do_something()
will issue a warning with a redefinition of g
To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/800691/+subscriptions
References