diff tests/test-commit-interactive.t @ 37122: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 5b9ae9eca94a
children 5abc47d4ca6b
line wrap: on
line diff
--- a/tests/test-commit-interactive.t	Sat Mar 24 13:38:04 2018 +0900
+++ b/tests/test-commit-interactive.t	Sat Mar 24 15:09:33 2018 +0900
@@ -900,7 +900,9 @@
   > from __future__ import absolute_import
   > from mercurial import (
   >     pycompat,
-  >     util,
+  > )
+  > from mercurial.utils import (
+  >     procutil,
   > )
   > def escape(c):
   >     o = ord(c)
@@ -908,8 +910,9 @@
   >         return c
   >     else:
   >         return br'\x%02x' % o # escape char setting MSB
-  > for l in util.stdin:
-  >     util.stdout.write(b''.join(escape(c) for c in pycompat.iterbytestr(l)))
+  > for l in procutil.stdin:
+  >     procutil.stdout.write(
+  >         b''.join(escape(c) for c in pycompat.iterbytestr(l)))
   > EOF
 
   $ hg commit -i --encoding cp932 2>&1 <<EOF | $PYTHON $TESTTMP/escape.py | grep '^y - '