[Python-checkins] cpython: tweak exception message (again)
brett.cannon
python-checkins at python.org
Thu Jun 6 00:37:55 CEST 2013
http://hg.python.org/cpython/rev/6b189f29b1e6
changeset: 84046:6b189f29b1e6
user: Brett Cannon <brett at python.org>
date: Wed Jun 05 18:37:50 2013 -0400
summary:
tweak exception message (again)
files:
Lib/importlib/_bootstrap.py | 4 +-
Python/importlib.h | 4627 +++++++++++-----------
2 files changed, 2316 insertions(+), 2315 deletions(-)
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -668,11 +668,11 @@
_verbose_message(message)
raise ImportError(message, **exc_details)
elif len(raw_timestamp) != 4:
- message = 'reached EOF while reading magic number in {!r}'.format(name)
+ message = 'reached EOF while reading timestamp in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
elif len(raw_size) != 4:
- message = 'reached EOF while reading size in {!r}'.format(name)
+ message = 'reached EOF while reading size of source in {!r}'.format(name)
_verbose_message(message)
raise EOFError(message)
if source_stats is not None:
diff --git a/Python/importlib.h b/Python/importlib.h
--- a/Python/importlib.h
+++ b/Python/importlib.h
[stripped]
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list