From 4d9a539086434b4f38857763e8ba773a76053e0f Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Fri, 24 Aug 2012 12:09:55 +0200 Subject: [PATCH] Python 3 compatibility --- wsme/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wsme/types.py b/wsme/types.py index 8687b64..f1ea28d 100644 --- a/wsme/types.py +++ b/wsme/types.py @@ -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