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 Alexander.Tsepkov
Recipients Alexander.Tsepkov
Date 2011-02-25.04:05:00
SpamBayes Score 7.051776e-07
Marked as misclassified No
Message-id <1298606703.83.0.56959729812.issue11315@psf.upfronthosting.co.za>
In-reply-to
Content
in Lib/Cookie.py, BaseCookie load() method performs the following comparison on line 624:

str(rawdata) == str("")

This breaks when a unicode string is passed in for rawdata. I've included a patch that fixes this issue by using isinstance(rawdata, basestring) comparison instead. Additionally the patch encodes rawdata in ascii before sending it to __ParseString() since that method does not support unicode.
History
Date User Action Args
2011-02-25 04:05:03Alexander.Tsepkovsetrecipients: + Alexander.Tsepkov
2011-02-25 04:05:03Alexander.Tsepkovsetmessageid: <1298606703.83.0.56959729812.issue11315@psf.upfronthosting.co.za>
2011-02-25 04:05:01Alexander.Tsepkovlinkissue11315 messages
2011-02-25 04:05:00Alexander.Tsepkovcreate