Message136291
| 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:01 | pitrou | set | recipients:
+ pitrou, vstinner, tarek, eric.araujo |
| 2011年05月19日 13:24:01 | pitrou | set | messageid: <1305811441.8.0.680590728546.issue12112@psf.upfronthosting.co.za> |
| 2011年05月19日 13:24:01 | pitrou | link | issue12112 messages |
| 2011年05月19日 13:24:01 | pitrou | create |
|