##// END OF EJS Templates
profile: colorize output on Windows...
Matt Harbison -
r36701:e39953fd default
parent child Browse files
Show More
@@ -14,6 +14,7 b' from . import ('
14 encoding,
14 encoding,
15 error,
15 error,
16 extensions,
16 extensions,
17 pycompat,
17 util,
18 util,
18 )
19 )
19
20
@@ -200,6 +201,17 b' class profile(object):'
200 elif self._output:
201 elif self._output:
201 path = self._ui.expandpath(self._output)
202 path = self._ui.expandpath(self._output)
202 self._fp = open(path, 'wb')
203 self._fp = open(path, 'wb')
204 elif pycompat.iswindows:
205 # parse escape sequence by win32print()
206 class uifp(object):
207 def __init__(self, ui):
208 self._ui = ui
209 def write(self, data):
210 self._ui.write_err(data)
211 def flush(self):
212 self._ui.flush()
213 self._fpdoclose = False
214 self._fp = uifp(self._ui)
203 else:
215 else:
204 self._fpdoclose = False
216 self._fpdoclose = False
205 self._fp = self._ui.ferr
217 self._fp = self._ui.ferr
General Comments 0
You need to be logged in to leave comments. Login now