hgext/convert/cvs.py
changeset 28861 86db5cb55d46
parent 28413 6bda82107e05
child 29205 a0939666b836
--- a/hgext/convert/cvs.py	Sun Apr 10 21:32:08 2016 +0000
+++ b/hgext/convert/cvs.py	Sun Apr 10 20:55:37 2016 +0000
@@ -6,7 +6,6 @@
 # GNU General Public License version 2 or any later version.
 from __future__ import absolute_import
 
-import cStringIO
 import errno
 import os
 import re
@@ -24,7 +23,7 @@
     cvsps,
 )
 
-StringIO = cStringIO.StringIO
+stringio = util.stringio
 checktool = common.checktool
 commit = common.commit
 converter_source = common.converter_source
@@ -228,7 +227,7 @@
             # file-objects returned by socket.makefile() do not handle
             # large read() requests very well.
             chunksize = 65536
-            output = StringIO()
+            output = stringio()
             while count > 0:
                 data = fp.read(min(count, chunksize))
                 if not data: