From 83b0f9a977d179e31ef8854b2d660e35bf501582 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 12:32:22 +0100 Subject: Use six.StringIO to work towards Python3 support Gbp-Dch: Ignore --- gbp/git/vfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp') 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() -- cgit v1.2.3