[Python-apps-team] Bug#703653: pyflakes: false positive "local variable ..." warnings when deleting global variable

Jakub Wilk jwilk at debian.org
Thu Mar 21 21:28:37 UTC 2013


Package: pyflakes
Version: 0.6.1-1~exp1
Severity: minor

Please see the attached test-case. These are false positives:

$ pyflakes test-del-global.py
test-del-global.py:5: local variable 'eggs' (defined in enclosing scope on line 1) referenced before assignment
test-del-global.py:7: local variable 'eggs' is assigned to but never used


-- System Information:
Debian Release: 7.0
   APT prefers unstable
   APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pyflakes depends on:
ii  python  2.7.3-4

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-del-global.py
Type: text/x-python
Size: 94 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130321/eb325e08/attachment.py>


More information about the Python-apps-team mailing list