Author lavajoe
Recipients lavajoe
Date 2011-01-18.22:31:34
SpamBayes Score 1.69601e-05
Marked as misclassified No
Message-id <>
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:41lavajoesetrecipients: + lavajoe
2011-01-18 22:31:40lavajoesetmessageid: <>
2011-01-18 22:31:34lavajoelinkissue10939 messages
2011-01-18 22:31:34lavajoecreate