Public bug reported:
Binary package hint: pylint
Example code:
--- pylint.py --------------------------
def do_something(a_word_with_coding=None):
pass
----------------------------------------
Now run pylint:
user@localhost:~$ pylint pylint.py
No config file found, using default configuration
Traceback (most recent call last):
File "/usr/bin/pylint", line 4, in <module>
lint.Run(sys.argv[1:])
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 860, in __init__
linter.check(args)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 493, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 563, in
check_astng_module
checker.process_module(astng)
File "/usr/lib/pymodules/python2.7/pylint/checkers/format.py", line 191, in
process_module
self.process_tokens(tokenize.generate_tokens(readline))
File "/usr/lib/pymodules/python2.7/pylint/checkers/format.py", line 218, in
process_tokens
for (tok_type, token, start, _, line) in tokens:
File "/usr/lib/python2.7/tokenize.py", line 288, in generate_tokens
line = readline()
File "/usr/lib/pymodules/python2.7/pylint/checkers/format.py", line 190, in
<lambda>
readline = lambda: stream.readline().decode(node.file_encoding, 'replace')
LookupError: unknown encoding: None):
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pylint 0.23.0-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon May 9 18:14:40 2011
PackageArchitecture: all
ProcEnviron:
LANGUAGE=de_DE:en
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: pylint
UpgradeStatus: Upgraded to natty on 2011-05-04 (4 days ago)
** Affects: pylint (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug natty
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/780014
Title:
Pylint crashes if the word "coding" is used as keyword argument
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs