diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-10 19:59:36 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-10 19:59:36 +0300 |
commit | 056bafe7a663e890594a11eec99c78f742452fff (patch) | |
tree | 0982dd869f5febfca0088f0104ae5745cebc7324 /Lib/imp.py | |
parent | a9e67ad993f672b44341a110f4a71b746dd066bf (diff) | |
download | cpython-git-056bafe7a663e890594a11eec99c78f742452fff.tar.gz |
#18681: Fix a NameError in imp.reload() (noticed by Weizhao Li).
Diffstat (limited to 'Lib/imp.py')
-rw-r--r-- | Lib/imp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imp.py b/Lib/imp.py index 40869f5ac0..34b6c542e1 100644 --- a/Lib/imp.py +++ b/Lib/imp.py @@ -267,7 +267,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: |