# HG changeset patch # User Yuya Nishihara # Date 1443852172 -32400 # Node ID 499d5c98e98b0838207b40da720a30bc0ba70c69 # Parent c8f42c1926a557dd6ab05a76c4c6d1899a05fe9d pager: inline _pagersubprocess() into _runpager() We don't need _pagersubprocess() because the fork version was removed at 59d794154e8d. diff -r c8f42c1926a5 -r 499d5c98e98b 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