Skip to content

Commit 14dbe4b

Browse files
cool-RRmiss-islington
authored andcommitted
Fix outdated comment in _strptime.py (GH-17929)
Can I please get the tags for skipping bpo and skipping a news item?
1 parent 6680f4a commit 14dbe4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self, locale_time=None):
182182
self.locale_time = LocaleTime()
183183
base = super()
184184
base.__init__({
185-
# The " \d" part of the regex is to make %c from ANSI C work
185+
# The " [1-9]" part of the regex is to make %c from ANSI C work
186186
'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])",
187187
'f': r"(?P<f>[0-9]{1,6})",
188188
'H': r"(?P<H>2[0-3]|[0-1]\d|\d)",

0 commit comments

Comments
 (0)