pager: inline _pagersubprocess() into _runpager()
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Oct 2015 15:02:52 +0900
changeset 26452 499d5c98e98b
parent 26451 c8f42c1926a5
child 26453 1a2578418689
pager: inline _pagersubprocess() into _runpager() We don't need _pagersubprocess() because the fork version was removed at 59d794154e8d.
hgext/pager.py
--- a/hgext/pager.py	Sat Oct 03 23:10:40 2015 +0900
+++ b/hgext/pager.py	Sat Oct 03 15:02:52 2015 +0900
@@ -65,7 +65,7 @@
 # leave the attribute unspecified.
 testedwith = 'internal'
 
-def _pagersubprocess(ui, p):
+def _runpager(ui, p):
     pager = subprocess.Popen(p, shell=True, bufsize=-1,
                              close_fds=util.closefds, stdin=subprocess.PIPE,
                              stdout=sys.stdout, stderr=sys.stderr)
@@ -85,9 +85,6 @@
         os.dup2(stderr, sys.stderr.fileno())
         pager.wait()
 
-def _runpager(ui, p):
-    _pagersubprocess(ui, p)
-
 def uisetup(ui):
     if '--debugger' in sys.argv or not ui.formatted():
         return