← Back to team overview

divmod-dev team mailing list archive

[Bug 970637] Re: Unused variables msg should be silenced if locals() is used

 

Yes, example in the ticket is not the best. Look at test cases supplied
with patch.

Run this through pyflakes: http://paste.pocoo.org/show/577582/
dir() could be any function that makes use of variable a

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/970637

Title:
  Unused variables msg should be silenced if locals() is used

Status in Pyflakes:
  New

Bug description:
  For example:
     
    def test(a, b):
            c = do_something(locals())
            return True

  Warning for unused variable should be issued only for c, not also a
  and b.

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/970637/+subscriptions


References