diff mercurial/dispatch.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 3640c1702c43
children ad1bdea43965
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sun Apr 10 21:32:08 2016 +0000
+++ b/mercurial/dispatch.py	Sun Apr 10 20:55:37 2016 +0000
@@ -990,8 +990,7 @@
         output = ui.config('profiling', 'output')
 
         if output == 'blackbox':
-            import StringIO
-            fp = StringIO.StringIO()
+            fp = util.stringio()
         elif output:
             path = ui.expandpath(output)
             fp = open(path, 'wb')