Joe Peterson <j...@skyrush.com> added the comment:

OK, I attached a patch that should work.  Note that this patch works for Python 
2 and Python 3.

As an aside, the str type is still returned as before (even in Python 3), and 
the _month_names list uses str.  As has been discussed, it may be more proper 
to return a bytes array and be consistent throughout imaplib, but this is not 
addressed here.

Also, I return a leading zero on the day instead of a leading space, since this 
appears to be what is returned by two IMAP servers I have just tested (gmail's 
and dovecot).

----------
keywords: +patch
Added file: 
http://bugs.python.org/file20556/imaplib_Time2Internaldate_locale_fix.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11024>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to