Skip to content

Commit 9428b8c

Browse files
committed
solve conflicts
1 parent f117b20 commit 9428b8c

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
@@ -302,7 +302,7 @@ def __init__(self, locale_time=None):
302302
# W is set below by using 'U'
303303
'y': r"(?P<y>\d\d)",
304304
'Y': r"(?P<Y>\d\d\d\d)",
305-
'z': r"(?P<z>[+-]\d\d(:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?)?|(?-i:Z))",
305+
'z': r"(?P<z>([+-]\d\d(:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?)?)|(?-i:Z))?",
306306
'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
307307
'a': self.__seqToRE(self.locale_time.a_weekday, 'a'),
308308
'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),

0 commit comments

Comments
 (0)