[Python-apps-team] Bug#666494: pyflakes: wrong WARNING due to del
Picca Frédéric-Emmanuel
picca at debian.org
Sat Mar 31 07:38:39 UTC 2012
Package: pyflakes
Version: 0.5.0-1
Severity: normal
Dear Maintainer,
I am using pyflakes on my project, and I got some wrong positiv warning due to
the del command.
so I attached a test.py file, which shows the problem
pyflakes test.py
test.py:5: undefined name 'a'
thanks
Frederic
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-486
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pyflakes depends on:
ii python 2.7.2-10
ii python-support 1.0.14
pyflakes recommends no packages.
pyflakes suggests no packages.
-------------- next part --------------
def test():
a = file('toto', 'w')
if 0:
del a
a.close()
More information about the Python-apps-team
mailing list