mercurial/utils/procutil.py
changeset 45103 a5fa2761a6cd
parent 45095 8e04607023e5
child 45148 a37f290a7124
--- a/mercurial/utils/procutil.py	Mon Jul 13 21:14:20 2020 +0900
+++ b/mercurial/utils/procutil.py	Wed Jul 15 15:09:21 2020 +0200
@@ -100,7 +100,7 @@
 io.IOBase.register(WriteAllWrapper)
 
 
-def make_write_all(stream):
+def _make_write_all(stream):
     assert pycompat.ispy3
     if isinstance(stream, WriteAllWrapper):
         return stream
@@ -118,11 +118,11 @@
     # TODO: .buffer might not exist if std streams were replaced; we'll need
     # a silly wrapper to make a bytes stream backed by a unicode one.
     stdin = sys.stdin.buffer
-    stdout = make_write_all(sys.stdout.buffer)
+    stdout = _make_write_all(sys.stdout.buffer)
     if isatty(stdout):
         # The standard library doesn't offer line-buffered binary streams.
         stdout = make_line_buffered(stdout)
-    stderr = make_write_all(sys.stderr.buffer)
+    stderr = _make_write_all(sys.stderr.buffer)
 else:
     # Python 2 uses the I/O streams provided by the C library.
     stdin = sys.stdin