]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix outdated comment in _strptime.py (GH-17929)
authorRam Rachum <ram@rachum.com>
Sun, 12 Jan 2020 20:53:00 +0000 (22:53 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 12 Jan 2020 20:53:00 +0000 (12:53 -0800)
Can I please get the tags for skipping bpo and skipping a news item?

Lib/_strptime.py

index f4f3c0b80c1d05bbf383f74d8ee233a1b9e41cab..5df37f5f4b89d5c7e7bbcdc5b986c3208c36c5cc 100644 (file)
@@ -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"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])",
             'f': r"(?P<f>[0-9]{1,6})",
             'H': r"(?P<H>2[0-3]|[0-1]\d|\d)",