bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
Ben Hoyt 2021-10-14 05:21:27 +13:00 committed by GitHub
parent f59ed3c310
commit b9e687618d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -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: