Python 3 compatibility
This commit is contained in:
parent
b49f992d1d
commit
4d9a539086
@ -1,5 +1,4 @@
|
||||
import base64
|
||||
import cStringIO as StringIO
|
||||
import datetime
|
||||
import decimal
|
||||
import inspect
|
||||
@ -552,5 +551,5 @@ class File(Base):
|
||||
@property
|
||||
def file(self):
|
||||
if self._file is None and self._content:
|
||||
self._file = StringIO.StringIO(self._content)
|
||||
self._file = six.BytesIO(self._content)
|
||||
return self._file
|
||||
|
Loading…
x
Reference in New Issue
Block a user