Show More
@@ -37,6 +37,11 b' from ..utils import resourceutil' | |||
|
37 | 37 | |
|
38 | 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 | 46 | def isatty(fp): |
|
42 | 47 | try: |
@@ -94,11 +99,8 b' if isatty(stdout):' | |||
|
94 | 99 | stdout = os.fdopen(stdout.fileno(), 'wb', 1) |
|
95 | 100 | |
|
96 | 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 | 105 | findexe = platform.findexe |
|
104 | 106 | _gethgcmd = platform.gethgcmd |
General Comments 0
You need to be logged in to leave comments.
Login now