##// END OF EJS Templates
procutil: split import and reassignment...
Manuel Jacob -
r45587:c8857719 default
parent child Browse files
Show More
@@ -37,6 +37,11 b' from ..utils import resourceutil'
37
37
38 osutil = policy.importmod('osutil')
38 osutil = policy.importmod('osutil')
39
39
40 if pycompat.iswindows:
41 from .. import windows as platform
42 else:
43 from .. import posix as platform
44
40
45
41 def isatty(fp):
46 def isatty(fp):
42 try:
47 try:
@@ -94,11 +99,8 b' if isatty(stdout):'
94 stdout = os.fdopen(stdout.fileno(), 'wb', 1)
99 stdout = os.fdopen(stdout.fileno(), 'wb', 1)
95
100
96 if pycompat.iswindows:
101 if pycompat.iswindows:
97 from .. import windows as platform
102 stdout = platform.winstdout(stdout)
98
103
99 stdout = platform.winstdout(stdout)
100 else:
101 from .. import posix as platform
102
104
103 findexe = platform.findexe
105 findexe = platform.findexe
104 _gethgcmd = platform.gethgcmd
106 _gethgcmd = platform.gethgcmd
General Comments 0
You need to be logged in to leave comments. Login now