[Python-checkins] cpython: Tweak an exception message

brett.cannon python-checkins at python.org
Sun Jan 27 19:08:48 CET 2013


http://hg.python.org/cpython/rev/0369b352dc85
changeset:   81784:0369b352dc85
parent:      81777:9774721bfc32
user:        Brett Cannon <brett at python.org>
date:        Sun Jan 27 13:04:56 2013 -0500
summary:
  Tweak an exception message

files:
  Lib/importlib/_bootstrap.py |     2 +-
  Python/importlib.h          |  5946 +++++++++++-----------
  2 files changed, 2974 insertions(+), 2974 deletions(-)


diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -646,7 +646,7 @@
     raw_timestamp = data[4:8]
     raw_size = data[8:12]
     if magic != _MAGIC_BYTES:
-        msg = 'incomplete magic number in {!r}: {!r}'.format(name, magic)
+        msg = 'bad magic number in {!r}: {!r}'.format(name, magic)
         raise ImportError(msg, **exc_details)
     elif len(raw_timestamp) != 4:
         message = 'incomplete timestamp in {!r}'.format(name)
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