[issue12112] The new packaging module should not use the locale encoding
Antoine Pitrou
report at bugs.python.org
Thu May 19 15:24:01 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
+ 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)
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12112>
_______________________________________
More information about the Python-bugs-list
mailing list