-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Functions parsedate(), parsedate_tz() and parsedate_to_datetime() in email.utils accept not only strings but also None. https://github.com/python/cpython/blob/master/Lib/email/_parseaddr.py#L67-L68
Actually they accept arbitrary false value, but None is the most common, because they are used in code like
server_timetuple = parsedate(resp.headers.get("Date"))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels