mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b9e687618d
)
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
This commit is contained in:
parent
151234f5da
commit
f8473f6f76
3 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,8 @@ def _parsedate_tz(data):
|
|||
tss = 0
|
||||
elif len(tm) == 3:
|
||||
[thh, tmm, tss] = tm
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
return None
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue