diff options
author | Brett Cannon <brett@python.org> | 2012-07-09 17:24:34 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-07-09 17:24:34 (GMT) |
commit | bf7eab077fe146dd76f5e7ddad3ff8b2d271fe6c (patch) | |
tree | b8339d4693365edbaa2d0b0a8d6a54cb30810448 /Lib/imp.py | |
parent | cd9b746b37fae46df2a8b669b5965272ab565ff8 (diff) | |
download | cpython-bf7eab077fe146dd76f5e7ddad3ff8b2d271fe6c.zip cpython-bf7eab077fe146dd76f5e7ddad3ff8b2d271fe6c.tar.gz cpython-bf7eab077fe146dd76f5e7ddad3ff8b2d271fe6c.tar.bz2 |
Issue #15256: Re-use the ImportError exception message as defined by
importlib._bootstrap in imp to fix a grammatical mistake.
Thanks to Marc Abramowitz for the patch.
Diffstat (limited to 'Lib/imp.py')
-rw-r--r-- | Lib/imp.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -230,7 +230,7 @@ def find_module(name, path=None): continue break # Break out of outer loop when breaking out of inner loop. else: - raise ImportError('No module name {!r}'.format(name), name=name) + raise ImportError(_bootstrap._ERR_MSG.format(name), name=name) encoding = None if mode == 'U': |