mercurial/utils/procutil.py
changeset 41284 b0e3f2d7c143
parent 41079 8ecb17b7f432
child 41837 b275dbb60089
--- a/mercurial/utils/procutil.py	Thu Jan 10 21:29:24 2019 +0900
+++ b/mercurial/utils/procutil.py	Wed Sep 26 21:29:13 2018 +0900
@@ -299,15 +299,6 @@
             os.dup2(f.fileno(), uif.fileno())
             f.close()
 
-@contextlib.contextmanager
-def protectedstdio(uin, uout):
-    """Run code block with protected standard streams"""
-    fin, fout = protectstdio(uin, uout)
-    try:
-        yield fin, fout
-    finally:
-        restorestdio(uin, uout, fin, fout)
-
 def shellenviron(environ=None):
     """return environ with optional override, useful for shelling out"""
     def py2shell(val):