Hi, Why does the following code generate an E0611 warning? It seems perfectly alright to me:
$ pylint mymodule/bar.py ************* Module mymodule.bar C0111: 1: Missing docstring C0102: 1: Black listed name "bar" E0611: 4: No name 'foo' in module '' W0611: 4: Unused import bla $ pylint --version pylint 0.21.1, astng 0.20.1, common 0.50.3 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] This is the code: $ find -type f ./mymodule/foo.py ./mymodule/bar.py ./mymodule/__init__.py $ cat mymodule/foo.py pass $ cat mymodule/bar.py from __future__ import absolute_import from . import foo as bla $ cat mymodule/__init__.py __all__ = [ 'bar', 'foo' ] Python is not complaining about it either: [2] vostro:~/tmp$ python -c 'import mymodule.bar' [0] vostro:~/tmp$ Best, -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
