Read about our upcoming Code of Conduct on this issue

Commit a5bb4491 authored by Manuel Jacob's avatar Manuel Jacob
Browse files

procutil: split import and reassignment

Besides making the code clearer, it will reduce the diff in the next patch.
parent 1053f878dd46
......@@ -37,6 +37,11 @@ from ..utils import resourceutil
osutil = policy.importmod('osutil')
if pycompat.iswindows:
from .. import windows as platform
else:
from .. import posix as platform
def isatty(fp):
try:
......@@ -94,11 +99,8 @@ if isatty(stdout):
stdout = os.fdopen(stdout.fileno(), 'wb', 1)
if pycompat.iswindows:
from .. import windows as platform
stdout = platform.winstdout(stdout)
else:
from .. import posix as platform
findexe = platform.findexe
_gethgcmd = platform.gethgcmd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment