summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 12:32:22 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 12:43:06 +0100
commit83b0f9a977d179e31ef8854b2d660e35bf501582 (patch)
tree301460fdd3818d6260dd9be82d86c6f662e48e4e
parent3ef32e2a51dd8bdcb904ccd8f33683149a55916a (diff)
Use six.StringIO
to work towards Python3 support Gbp-Dch: Ignore
-rw-r--r--gbp/git/vfs.py4
-rw-r--r--tests/testutils/gbplogtester.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/gbp/git/vfs.py b/gbp/git/vfs.py
index d6f9f4d..b2c0f45 100644
--- a/gbp/git/vfs.py
+++ b/gbp/git/vfs.py
@@ -16,7 +16,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Make blobs in a git repository accessible as file like objects"""
-import StringIO
+from six import StringIO
from gbp.git.repository import GitRepositoryError
class GitVfs(object):
@@ -29,7 +29,7 @@ class GitVfs(object):
"""
def __init__(self, content):
self._iter = iter
- self._data = StringIO.StringIO(content)
+ self._data = StringIO(content)
def readline(self):
return self._data.readline()
diff --git a/tests/testutils/gbplogtester.py b/tests/testutils/gbplogtester.py
index 20b522d..ee50d18 100644
--- a/tests/testutils/gbplogtester.py
+++ b/tests/testutils/gbplogtester.py
@@ -1,7 +1,7 @@
# vim: set fileencoding=utf-8 :
import re
-from StringIO import StringIO
+from six import StringIO
from nose.tools import eq_, ok_ # pylint: disable=E0611
import gbp.log