hgext/pager.py
changeset 26452 499d5c98e98b
parent 25201 59d794154e8d
child 26453 1a2578418689
--- 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