Package: pylint
Version: 1.1.0-1
Severity: normal

pylint fails with an exception if you have your own module named "exceptions":

$ echo 'import exceptions' > eggs.py
$ echo > exceptions.py
$ pylint eggs.py exceptions.py
************* Module eggs
W:  1, 0: Unused import exceptions (unused-import)
Traceback (most recent call last):
  File "/usr/bin/pylint", line 3, in <module>
    run_pylint()
  File "/usr/lib/python2.7/dist-packages/pylint/__init__.py", line 21, in 
run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 1040, in __init__
    linter.check(args)
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 626, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 686, in 
check_astroid_module
    tokens = tokenize_module(astroid)
  File "/usr/lib/python2.7/dist-packages/pylint/utils.py", line 104, in 
tokenize_module
    stream.seek(0)
AttributeError: 'NoneType' object has no attribute 'seek'



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

Kernel: Linux 3.12-1-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 pylint depends on:
ii  python                 2.7.5-5
ii  python-astroid         1.0.1-1
ii  python-logilab-common  0.60.1-1

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to