Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(43)

Unified Diff: Lib/importlib/_bootstrap.py

Issue 19413: Reload semantics changed unexpectedly in Python 3.3
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/importlib/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1518,7 +1518,10 @@
if name not in sys.modules:
return loader
else:
- return sys.modules[name].__loader__
+ try:
+ return sys.modules[name].__loader__
+ except AttributeError:
+ return loader
else:
return None
« no previous file with comments | « no previous file | Lib/importlib/__init__.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+