##// END OF EJS Templates
pager: inline _pagersubprocess() into _runpager()...
Yuya Nishihara -
r26452:499d5c98 default
parent child Browse files
Show More
@@ -65,7 +65,7 b' from mercurial.i18n import _'
65 # leave the attribute unspecified.
65 # leave the attribute unspecified.
66 testedwith = 'internal'
66 testedwith = 'internal'
67
67
68 def _pagersubprocess(ui, p):
68 def _runpager(ui, p):
69 pager = subprocess.Popen(p, shell=True, bufsize=-1,
69 pager = subprocess.Popen(p, shell=True, bufsize=-1,
70 close_fds=util.closefds, stdin=subprocess.PIPE,
70 close_fds=util.closefds, stdin=subprocess.PIPE,
71 stdout=sys.stdout, stderr=sys.stderr)
71 stdout=sys.stdout, stderr=sys.stderr)
@@ -85,9 +85,6 b' def _pagersubprocess(ui, p):'
85 os.dup2(stderr, sys.stderr.fileno())
85 os.dup2(stderr, sys.stderr.fileno())
86 pager.wait()
86 pager.wait()
87
87
88 def _runpager(ui, p):
89 _pagersubprocess(ui, p)
90
91 def uisetup(ui):
88 def uisetup(ui):
92 if '--debugger' in sys.argv or not ui.formatted():
89 if '--debugger' in sys.argv or not ui.formatted():
93 return
90 return
General Comments 0
You need to be logged in to leave comments. Login now