cpython: 75831951a6b5 (original) (raw)
Mercurial > cpython
changeset 78025:75831951a6b5
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. [#15256]
Brett Cannon brett@python.org | |
---|---|
date | Mon, 09 Jul 2012 13:24:34 -0400 |
parents | 9e3523f93254 |
children | e86330669bb5 |
files | Lib/imp.py Misc/NEWS |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-)[+] [-] Lib/imp.py 2 Misc/NEWS 2 |
line wrap: on
line diff
--- a/Lib/imp.py +++ b/Lib/imp.py @@ -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)[](#l1.7)
raise ImportError(_bootstrap._ERR_MSG.format(name), name=name)[](#l1.8)
encoding = None if mode == 'U':
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -31,6 +31,8 @@ Core and Builtins Library ------- +- Issue #15256: Grammatical mistake in exception raised by imp.find_module(). +