Mercurial > hg
changeset 26452:499d5c98e98b
pager: inline _pagersubprocess() into _runpager()
We don't need _pagersubprocess() because the fork version was removed
at 59d794154e8d.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 03 Oct 2015 15:02:52 +0900 |
parents | c8f42c1926a5 |
children | 1a2578418689 |
files | hgext/pager.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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