Skip to content

Commit ed63eed

Browse files
committed
Accept suggestions
1 parent 57098db commit ed63eed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ def __init__(self, locale_time=None):
371371
# W is set below by using 'U'
372372
'y': r"(?P<y>\d\d)",
373373
'Y': r"(?P<Y>\d\d\d\d)",
374-
# See gh-121237: "z" might not support colons, if designed from scratch.
375-
# However, for backwards compatibility, we must keep them.
374+
# See gh-121237: "z" must support colons for backwards compatibility.
376375
'z': r"(?P<z>([+-]\d\d:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?)|(?-i:Z))?",
377376
':z': r"(?P<colon_z>([+-]\d\d:[0-5]\d(:[0-5]\d(\.\d{1,6})?)?)|(?-i:Z))?",
378377
'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Support ``%:z`` directive for :meth:`~datetime.datetime.strptime` and
2-
:meth:`~datetime.time.strptime`. Patch by Semyon Moroz.
2+
:meth:`~datetime.time.strptime`. Patch by Lucas Esposito and Semyon Moroz.

0 commit comments

Comments
 (0)