$ mkdir a
$ touch a/__init__.py a/b.py a/c.py a/d.py
$ cat x.py
import a.b
import a.c
def test():
import a.d
$ pylint x.py
...
W: 4:test: Redefining name 'a' from outer scope (line 1)
...
W: 4:test: Unused variable 'a'
...
pylint-0.19.0-1.fc12.noarch
python-logilab-astng-0.19.3-1.fc12.noarch
| |
| priority | normal |
|---|---|
| type | bug |
| appeared in | <not specified> |
| done in | <not specified> |
| closed by | <not specified> |


#20062 suspicious error about missing attribute "next" in generator object
Comments
-
2010/12/15 16:54, written by eanclin
| reply to this comment
-
2011/02/11 17:29, written by anon
| reply to this comment
(add comment)Note also the strange "Reimport" warning:
pylint 0.23.0 running on OS X. The code:
""" Administrative utility functions """ from ips_quisitor.common.loggers import get_logger __copyright__ = 'Copyright 2010 IP Street, Inc. All Rights Reserved.' LOG = get_logger(__name__) def ftp_connect(url, user, password): """Return an FTP connection object to a logged-in FTP server. """ import ftplib ftp = ftplib.FTP(url) ftp.login(user, password) return ftpPylint reports:
This appears to be clearly wrong.