Issue #18342: Use the repr of a module name for ``from ... import

...`` when an ImportError occurs.

Other cases had already been switched over to using the repr.

Thanks to Tomasz Maćkowiak for the patch.
This commit is contained in:
Brett Cannon 2013-07-12 11:22:26 -04:00
parent f0cb69274c
commit a79e4fb38d
4 changed files with 13 additions and 1 deletions

View file

@ -786,6 +786,7 @@ Andrew I MacIntyre
Tim MacKenzie
Nick Maclaren
Don MacMillen
Tomasz Maćkowiak
Steve Majewski
Grzegorz Makarewicz
David Malcolm

View file

@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1?
Core and Builtins
-----------------
- Issue #18342: Use the repr of a module name when an import fails when using
``from ... import ...``.
- Issue #17872: Fix a segfault in marshal.load() when input stream returns
more bytes than requested.