Message213368
Fix is simple:
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1519,7 +1519,7 @@ def _find_and_load_unlocked(name, import
path = parent_module.__path__
except AttributeError:
msg = (_ERR_MSG + '; {} is not a package').format(name, parent)
- raise ImportError(msg, name=name)
+ raise ImportError(msg, name=name) from None
Manual testing confirms the fix. Is a unit test needed? Should this wait for 3.5? |
|
Date |
User |
Action |
Args |
2014-03-13 09:17:15 | eric.araujo | set | recipients:
+ eric.araujo, brett.cannon, alex, eric.snow |
2014-03-13 09:17:15 | eric.araujo | set | messageid: <1394702235.76.0.953616531326.issue19257@psf.upfronthosting.co.za> |
2014-03-13 09:17:15 | eric.araujo | link | issue19257 messages |
2014-03-13 09:17:15 | eric.araujo | create | |
|