[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Brett Cannon
report at bugs.python.org
Wed Jun 27 21:21:10 CEST 2012
New submission from Brett Cannon <brett at python.org>:
If you look at http://hg.python.org/cpython/file/abcd29c9a791/Lib/importlib/__init__.py you will notice that the try/except block for seeing if _frozen_importlib exists catches ImportError, not KeyError like it should since it is checking sys. modules and not performing an import.
----------
components: Library (Lib)
messages: 164188
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15210>
_______________________________________
More information about the Python-bugs-list
mailing list