##// END OF EJS Templates
profiling: stop using the `pycompat.open()` shim
Matt Harbison -
r53260:6a8edf9f default
parent child Browse files
Show More
@@ -14,9 +14,6 import subprocess
14 import sys
14 import sys
15
15
16 from .i18n import _
16 from .i18n import _
17 from .pycompat import (
18 open,
19 )
20 from . import (
17 from . import (
21 encoding,
18 encoding,
22 error,
19 error,
@@ -298,7 +295,7 class profile:
298 self._fp = util.stringio()
295 self._fp = util.stringio()
299 elif self._output:
296 elif self._output:
300 path = util.expandpath(self._output)
297 path = util.expandpath(self._output)
301 self._fp = open(path, b'wb')
298 self._fp = open(path, 'wb')
302 elif pycompat.iswindows:
299 elif pycompat.iswindows:
303 # parse escape sequence by win32print()
300 # parse escape sequence by win32print()
304 class uifp:
301 class uifp:
General Comments 0
You need to be logged in to leave comments. Login now