[Python-apps-team] Bug#533296: pylint: please make it handle try: import ... except ImportError: ... better
Helmut Grohne
helmut at subdivi.de
Tue Jun 16 09:51:50 UTC 2009
Package: pylint
Version: 0.18.0-1
Severity: wishlist
As I try to write compatible code I quite often have to do conditional
import like this:
try:
import io
except ImportError:
try:
import cStringIO as io
except ImportError:
import StringIO as io
However pylint complains about one or another module being not
importable:
F: 7: Unable to import 'io' (No module named io)
Maybe this could be improved.
Helmut
More information about the Python-apps-team
mailing list