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 dh, georg.brandl, r.david.murray
Date 2009-11-26.18:22:35
SpamBayes Score 0.0005449803
Marked as misclassified No
Message-id <1259259758.43.0.987799791179.issue7399@psf.upfronthosting.co.za>
In-reply-to
Content
The example is indeed wrong.  urlopen is returning an object that emits
binary data.  The error comes from using 'in' on incompatible types. 
The solution is to encode the data with an appropriate encoding, once
you figure out what that is.
History
Date User Action Args
2009-11-26 18:22:38r.david.murraysetrecipients: + r.david.murray, georg.brandl, dh
2009-11-26 18:22:38r.david.murraysetmessageid: <1259259758.43.0.987799791179.issue7399@psf.upfronthosting.co.za>
2009-11-26 18:22:36r.david.murraylinkissue7399 messages
2009-11-26 18:22:35r.david.murraycreate