changeset 30332:189a1030affb

profiling: obtain stderr from ui This will help Python 3 porting.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 20 Oct 2016 22:07:03 +0900
parents e1d6aa0e4c3a
children 5f7d13d3bd4d
files mercurial/profiling.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/profiling.py	Sun Nov 06 18:51:57 2016 -0800
+++ b/mercurial/profiling.py	Thu Oct 20 22:07:03 2016 +0900
@@ -9,7 +9,6 @@
 
 import contextlib
 import os
-import sys
 import time
 
 from .i18n import _
@@ -136,7 +135,7 @@
         path = ui.expandpath(output)
         fp = open(path, 'wb')
     else:
-        fp = sys.stderr
+        fp = ui.ferr
 
     try:
         if profiler == 'ls':