Mercurial > hg
diff hgext/convert/subversion.py @ 28861:86db5cb55d46
pycompat: switch to util.stringio for py3 compat
author | timeless <timeless@mozdev.org> |
---|---|
date | Sun, 10 Apr 2016 20:55:37 +0000 |
parents | f106913c6a4e |
children | 032c4c2f802a |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Sun Apr 10 21:32:08 2016 +0000 +++ b/hgext/convert/subversion.py Sun Apr 10 20:55:37 2016 +0000 @@ -4,7 +4,6 @@ from __future__ import absolute_import import cPickle as pickle -import cStringIO import os import re import sys @@ -24,7 +23,7 @@ from . import common -StringIO = cStringIO.StringIO +stringio = util.stringio propertycache = util.propertycache commandline = common.commandline @@ -986,7 +985,7 @@ if self.module != new_module: self.module = new_module self.reparent(self.module) - io = StringIO() + io = stringio() info = svn.ra.get_file(self.ra, file, revnum, io) data = io.getvalue() # ra.get_file() seems to keep a reference on the input buffer