[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names
Alberto Moral
report at bugs.python.org
Wed Oct 10 13:38:50 EDT 2018
Alberto Moral <alb_moral at yahoo.es> added the comment:
Yes, I was thinking that it could be a matter of configuration of the server (?).
By the way, and just for fun, I've just realized that truncating mon at the begining of the _str2time funtion is a very bad idea because mon could also be an int.
A better place is when looking the MONTHS_LOWER array index (and possible exception is handle):
try:
mon = MONTHS_LOWER.index(mon[:3].lower())+1
(perhaps in 2 sentences for clarity)
OK, waiting for experts' comments.
I'm really enjoying Python.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34951>
_______________________________________
More information about the Python-bugs-list
mailing list