kill the str magic of Encodedfile
This commit is contained in:
parent
5f21abc3a3
commit
0ede968ec0
|
@ -400,10 +400,6 @@ class EncodedFile(object):
|
|||
def write(self, obj):
|
||||
if isinstance(obj, unicode):
|
||||
obj = obj.encode(self.encoding)
|
||||
elif isinstance(obj, str):
|
||||
pass
|
||||
else:
|
||||
obj = str(obj)
|
||||
self._stream.write(obj)
|
||||
|
||||
def writelines(self, linelist):
|
||||
|
|
Loading…
Reference in New Issue