mercurial/profiling.py
changeset 46958 5a6a1cd21f09
parent 44192 d6d4170882cd
child 48875 6000f5b25c9b
equal deleted inserted replaced
46957:e7d082e4ace6 46958:5a6a1cd21f09
   226 
   226 
   227         try:
   227         try:
   228             if self._output == b'blackbox':
   228             if self._output == b'blackbox':
   229                 self._fp = util.stringio()
   229                 self._fp = util.stringio()
   230             elif self._output:
   230             elif self._output:
   231                 path = self._ui.expandpath(self._output)
   231                 path = util.expandpath(self._output)
   232                 self._fp = open(path, b'wb')
   232                 self._fp = open(path, b'wb')
   233             elif pycompat.iswindows:
   233             elif pycompat.iswindows:
   234                 # parse escape sequence by win32print()
   234                 # parse escape sequence by win32print()
   235                 class uifp(object):
   235                 class uifp(object):
   236                     def __init__(self, ui):
   236                     def __init__(self, ui):