Message136291
+ 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) |
|
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 | |
|