-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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"))
Metadata
Metadata
Assignees
Labels
No labels