Message126499
There are two issues with conversion to Python 3:
1. It raise "KeyError". This is because the Mon2num dictionary keys are strings (str), not bytes objects (note that many other strings in imaplib have been updated, but not Mon2num).
2. The sign character of the TZ offset (e.g. -0700) is compared to the string (str) '-', not bytes array b'-', so the compare is never true, causing a large error when the TZ offset is negative.
Patch attached that also adds a unit test. |
|
Date |
User |
Action |
Args |
2011-01-18 22:31:41 | lavajoe | set | recipients:
+ lavajoe |
2011-01-18 22:31:40 | lavajoe | set | messageid: <1295389900.99.0.76199090445.issue10939@psf.upfronthosting.co.za> |
2011-01-18 22:31:34 | lavajoe | link | issue10939 messages |
2011-01-18 22:31:34 | lavajoe | create | |
|