homepage

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 pitrou
Recipients eric.araujo, pitrou, tarek, vstinner
Date 2011年05月19日.13:24:01
SpamBayes Score 0.0003692387
Marked as misclassified No
Message-id <1305811441.8.0.680590728546.issue12112@psf.upfronthosting.co.za>
In-reply-to
Content
+ if not isinstance(fileobject, StringIO):
+ encoding = codecs.lookup(fileobject.encoding).name
IMO you should try to get the "encoding" attribute and silence the AttributeError instead.
(also, I'm not even sure why you're adding this check)
History
Date User Action Args
2011年05月19日 13:24:01pitrousetrecipients: + pitrou, vstinner, tarek, eric.araujo
2011年05月19日 13:24:01pitrousetmessageid: <1305811441.8.0.680590728546.issue12112@psf.upfronthosting.co.za>
2011年05月19日 13:24:01pitroulinkissue12112 messages
2011年05月19日 13:24:01pitroucreate

AltStyle によって変換されたページ (->オリジナル) /