Message129330
| 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:03 | Alexander.Tsepkov | set | recipients:
+ Alexander.Tsepkov |
| 2011年02月25日 04:05:03 | Alexander.Tsepkov | set | messageid: <1298606703.83.0.56959729812.issue11315@psf.upfronthosting.co.za> |
| 2011年02月25日 04:05:01 | Alexander.Tsepkov | link | issue11315 messages |
| 2011年02月25日 04:05:00 | Alexander.Tsepkov | create |
|