From: Ram Rachum Date: Sun, 12 Jan 2020 20:53:00 +0000 (+0200) Subject: Fix outdated comment in _strptime.py (GH-17929) X-Git-Tag: v3.9.0a3~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14dbe4b3f0a888a60e8cc20f3df5aa09c8bb82c3;p=thirdparty%2FPython%2Fcpython.git Fix outdated comment in _strptime.py (GH-17929) Can I please get the tags for skipping bpo and skipping a news item? --- diff --git a/Lib/_strptime.py b/Lib/_strptime.py index f4f3c0b80c1d..5df37f5f4b89 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -182,7 +182,7 @@ class TimeRE(dict): self.locale_time = LocaleTime() base = super() base.__init__({ - # The " \d" part of the regex is to make %c from ANSI C work + # The " [1-9]" part of the regex is to make %c from ANSI C work 'd': r"(?P3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])", 'f': r"(?P[0-9]{1,6})", 'H': r"(?P2[0-3]|[0-1]\d|\d)",