[Python-checkins] cpython: Issue #27125: Remove duplicated words in exception message

martin.panter python-checkins at python.org
Mon May 30 01:27:12 EDT 2016


https://hg.python.org/cpython/rev/bd0a12277a8e
changeset:   101574:bd0a12277a8e
user:        Martin Panter <vadmium+py at gmail.com>
date:        Mon May 30 04:08:23 2016 +0000
summary:
  Issue #27125: Remove duplicated words in exception message

files:
  Lib/datetime.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/datetime.py b/Lib/datetime.py
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -254,7 +254,7 @@
         raise ValueError("tzinfo.%s() must return a whole number "
                          "of minutes, got %s" % (name, offset))
     if not -timedelta(1) < offset < timedelta(1):
-        raise ValueError("%s()=%s, must be must be strictly between "
+        raise ValueError("%s()=%s, must be strictly between "
                          "-timedelta(hours=24) and timedelta(hours=24)" %
                          (name, offset))
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list