mercurial/chgserver.py
changeset 37119 d4a2e0d5d042
parent 36835 5bc7ff103081
child 37120 a8a902d7176e
--- a/mercurial/chgserver.py	Sat Mar 24 13:38:04 2018 +0900
+++ b/mercurial/chgserver.py	Sat Mar 24 15:09:33 2018 +0900
@@ -61,6 +61,10 @@
     util,
 )
 
+from .utils import (
+    procutil,
+)
+
 _log = commandserver.log
 
 def _hashlist(items):
@@ -200,7 +204,7 @@
             # these situations and will behave differently (write to stdout).
             if (out is not self.fout
                 or not util.safehasattr(self.fout, 'fileno')
-                or self.fout.fileno() != util.stdout.fileno()):
+                or self.fout.fileno() != procutil.stdout.fileno()):
                 return util.system(cmd, environ=environ, cwd=cwd, out=out)
             self.flush()
             return self._csystem(cmd, util.shellenviron(environ), cwd)