Plik check.py wygląda tak:
import email.mime.application
$ pylint check.py wyrzuca:
************* Module check
C: 1: Missing docstring
Traceback (most recent call last):
File "/usr/bin/pylint", line 4, in <module>
lint.Run(sys.argv[1:])
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 901, in
__init__
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 492, in check
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 602, in
check_astng_module
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 619, in
astng_events
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 619, in
astng_events
File "/usr/share/python2.5/site-packages/pylint/lint.py", line 616, in
astng_events
File "/usr/share/python2.5/site-packages/logilab/astng/utils.py", line 84, in
visit
File "/usr/share/python2.5/site-packages/pylint/checkers/variables.py", line
362, in visit_import
File "/usr/share/python2.5/site-packages/pylint/checkers/variables.py", line
418, in _check_module_attrs
TypeError: 'Yes' object is unindexable
Jak to naprawić?
Czy działa Wam pylint?
--
Witek
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl