]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27125: Remove duplicated words in exception message
authorMartin Panter <vadmium+py@gmail.com>
Mon, 30 May 2016 04:08:23 +0000 (04:08 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 30 May 2016 04:08:23 +0000 (04:08 +0000)
Lib/datetime.py

index d4b7fc45d5bcc60a59ad49b87390cc3d22792e4c..b1321a34e3832dc521c9aab23bdbd550ca164714 100644 (file)
@@ -254,7 +254,7 @@ def _check_utc_offset(name, offset):
         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))