You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the tested file contains null bytes, pyflakes fails with traceback:
$ pyflakes test.py
Traceback (most recent call last):
File "/usr/bin/pyflakes", line 5, in
sys.exit(main(sys.argv[1:]))
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 92, in main
warnings += checkPath(arg)
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 74, in checkPath
return check(fd.read(), filename)
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 28, in check
tree = compile(codeString, filename, "exec", _ast.PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes
<<<
Attached the test file.
Regards,
Sandro
The text was updated successfully, but these errors were encountered:
Original report by morph-debian on Launchpad:
Hello,
I'm reporting http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674796:
If the tested file contains null bytes, pyflakes fails with traceback:
$ pyflakes test.py
Traceback (most recent call last):
File "/usr/bin/pyflakes", line 5, in
sys.exit(main(sys.argv[1:]))
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 92, in main
warnings += checkPath(arg)
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 74, in checkPath
return check(fd.read(), filename)
File "/usr/lib/pymodules/python2.7/pyflakes/scripts/pyflakes.py", line 28, in check
tree = compile(codeString, filename, "exec", _ast.PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes
<<<
Attached the test file.
Regards,
Sandro
The text was updated successfully, but these errors were encountered: