diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-10 17:01:43 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-10 17:01:43 (GMT) |
commit | fbcf4d78c881176345483111503c4bc7765d4ff8 (patch) | |
tree | 79d1732ee9198f78db6f771599a71a3323138d73 /Lib/importlib/__init__.py | |
parent | b37278cc9b9c5a3044ce0bb963b572106e95f612 (diff) | |
parent | 056bafe7a663e890594a11eec99c78f742452fff (diff) | |
download | cpython-fbcf4d78c881176345483111503c4bc7765d4ff8.zip cpython-fbcf4d78c881176345483111503c4bc7765d4ff8.tar.gz cpython-fbcf4d78c881176345483111503c4bc7765d4ff8.tar.bz2 |
#18681: merge with 3.3.
Diffstat (limited to 'Lib/importlib/__init__.py')
-rw-r--r-- | Lib/importlib/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index d456c48..aab54a7 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -115,7 +115,7 @@ def reload(module): parent_name = name.rpartition('.')[0] if parent_name and parent_name not in sys.modules: msg = "parent {!r} not in sys.modules" - raise ImportError(msg.format(parentname), name=parent_name) + raise ImportError(msg.format(parent_name), name=parent_name) return module.__loader__.load_module(name) finally: try: |