Mercurial > hg
diff mercurial/commandserver.py @ 37119:d4a2e0d5d042
procutil: bulk-replace util.std* to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:09:33 +0900 |
parents | b0ffcb540357 |
children | a8a902d7176e |
line wrap: on
line diff
--- a/mercurial/commandserver.py Sat Mar 24 13:38:04 2018 +0900 +++ b/mercurial/commandserver.py Sat Mar 24 15:09:33 2018 +0900 @@ -29,6 +29,9 @@ pycompat, util, ) +from .utils import ( + procutil, +) logfile = None @@ -308,8 +311,8 @@ ui.flush() newfiles = [] nullfd = os.open(os.devnull, os.O_RDWR) - for f, sysf, mode in [(ui.fin, util.stdin, r'rb'), - (ui.fout, util.stdout, r'wb')]: + for f, sysf, mode in [(ui.fin, procutil.stdin, r'rb'), + (ui.fout, procutil.stdout, r'wb')]: if f is sysf: newfd = os.dup(f.fileno()) os.dup2(nullfd, f.fileno())