This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients BreamoreBoy, Mauro.Cicognini, anadelonbrin, barry, dmbaggett, meatballhat, r.david.murray
Date 2013-02-12.14:00:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360677616.15.0.531010403028.issue917120@psf.upfronthosting.co.za>
In-reply-to
Content
I don't understand what you mean by removing dead code leading to loss of functionality, unless you mean that the removal of the call to the quoting code in Python3 led to a loss of functionality relative to Python2, in which case I agree.  It also led to the behavior being out of sync with the documentation.

Reviewing the history of the changes (see issue 1210), it appears to me that the removal of the call to _checkquote was in fact unintentional and is a bug (it existed in the port-to-python3 patch submitted by Victor, but was commented out, which probably means he had it commented out for testing and did not notice he had not restored it).  This makes the later removal of _checkquote incorrect as well.

This error is primarily a consequence of imaplib having very few tests.

This module needs a lot of love in Python3 from someone, and it is not an easy topic to wrap ones head around.  It's on my list of things to look at, but there are a bunch of things ahead of it.

For the immediate issue, it is working as documented in Python2.7, so there is nothing to do there.  For Python3 we haven't had the quoting since the start, so we have the opportunity to consider changing the quoting rules if we wish...and we may have have no choice, since the new behavior has been in released versions for several Python3 versions now and starting to quote like Python2.7 did might break otherwise working code.  I don't have an opinion on how to fix this this yet, since while I know more about the IMAP protocol than I did a year ago, I still don't know enough to even write the tests....
History
Date User Action Args
2013-02-12 14:00:16r.david.murraysetrecipients: + r.david.murray, barry, anadelonbrin, dmbaggett, meatballhat, BreamoreBoy, Mauro.Cicognini
2013-02-12 14:00:16r.david.murraysetmessageid: <1360677616.15.0.531010403028.issue917120@psf.upfronthosting.co.za>
2013-02-12 14:00:16r.david.murraylinkissue917120 messages
2013-02-12 14:00:15r.david.murraycreate