This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benhoyt
Recipients barry, benhoyt
Date 2021-09-18.22:44:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632005073.46.0.220950731343.issue45239@roundup.psfhosted.org>
In-reply-to
Content
For reference, here's a repro case:

$ python3.10 -c 'import email.utils; \
    email.utils.parsedate_tz("Wed, 3 Apr 2002 12.34.56.78+0800")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.10/email/_parseaddr.py", line 50, in parsedate_tz
    res = _parsedate_tz(data)
  File "/usr/local/lib/python3.10/email/_parseaddr.py", line 134, in _parsedate_tz
    thh = int(thh)
UnboundLocalError: local variable 'thh' referenced before assignment
History
Date User Action Args
2021-09-18 22:44:33benhoytsetrecipients: + benhoyt, barry
2021-09-18 22:44:33benhoytsetmessageid: <1632005073.46.0.220950731343.issue45239@roundup.psfhosted.org>
2021-09-18 22:44:33benhoytlinkissue45239 messages
2021-09-18 22:44:33benhoytcreate