This exception does not occur with Python 2. I use logilab-common 0.57.0, logilab-astng 0.23.0 and pylint 0.25.0.
$ cat test.py
try:
from pickle import PickleError
except ImportError:
from nonexistent import PickleError
try:
pass
except PickleError:
pass
$ pylint-3.2 test.py
No config file found, using default configuration
************* Module test
C: 1,0: Missing docstring
F: 4,4: Unable to import 'nonexistent'
Traceback (most recent call last):
File "/usr/bin/pylint-3.2", line 4, in <module>
lint.Run(sys.argv[1:])
File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 874, in
__init__
linter.check(args)
File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 496, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 568, in
check_astng_module
walker.walk(astng)
File "/usr/lib64/python3.2/site-packages/pylint/utils.py", line 528, in walk
self.walk(child)
File "/usr/lib64/python3.2/site-packages/pylint/utils.py", line 525, in walk
cb(astng)
File "/usr/lib64/python3.2/site-packages/pylint/checkers/exceptions.py", line
162, in visit_tryexcept
excs = list(unpack_infer(handler.type))
File "/usr/lib64/python3.2/site-packages/logilab/astng/node_classes.py", line
47, in unpack_infer
for inf_inf in unpack_infer(infered, context):
File "/usr/lib64/python3.2/site-packages/logilab/astng/node_classes.py", line
42, in unpack_infer
infered = next(stmt.infer(context))
TypeError: _Yes object is not an iterator
--
Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
