diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-13 16:58:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 16:58:37 (GMT) |
commit | 5638618845752f713c00d69dbe705fed16761948 (patch) | |
tree | f29759f26027709d0bb823cc6bd13c1b23a1d24b /Lib/email | |
parent | cc90732d15b267feb4cb75ec4c448a3c66e6c520 (diff) | |
download | cpython-5638618845752f713c00d69dbe705fed16761948.zip cpython-5638618845752f713c00d69dbe705fed16761948.tar.gz cpython-5638618845752f713c00d69dbe705fed16761948.tar.bz2 |
bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28928)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
(cherry picked from commit b9e687618d3489944f29adbd2be50b46940c9e70)
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_parseaddr.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index 178329f..c5a7b23 100644 --- a/Lib/email/_parseaddr.py +++ b/Lib/email/_parseaddr.py @@ -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: |