##// END OF EJS Templates
procutil: move assignments closer to reassignments...
Manuel Jacob -
r45586:1053f878 default
parent child Browse files
Show More
@@ -37,10 +37,6 b' from ..utils import resourceutil'
37
37
38 osutil = policy.importmod('osutil')
38 osutil = policy.importmod('osutil')
39
39
40 stderr = pycompat.stderr
41 stdin = pycompat.stdin
42 stdout = pycompat.stdout
43
44
40
45 def isatty(fp):
41 def isatty(fp):
46 try:
42 try:
@@ -79,6 +75,10 b' def make_line_buffered(stream):'
79 return LineBufferedWrapper(stream)
75 return LineBufferedWrapper(stream)
80
76
81
77
78 stderr = pycompat.stderr
79 stdin = pycompat.stdin
80 stdout = pycompat.stdout
81
82 # glibc determines buffering on first write to stdout - if we replace a TTY
82 # glibc determines buffering on first write to stdout - if we replace a TTY
83 # destined stdout with a pipe destined stdout (e.g. pager), we want line
83 # destined stdout with a pipe destined stdout (e.g. pager), we want line
84 # buffering (or unbuffered, on Windows)
84 # buffering (or unbuffered, on Windows)
General Comments 0
You need to be logged in to leave comments. Login now