Use system default buffering on Python 2
This commit is contained in:
1 parent
197aa22f29
commit
f9e90e863b
1 file changed
+3
@@ -142,6 +142,9 @@ class _CompiledSubprocess(object):
|
|||||||
args,
|
args,
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
|
# Use system default buffering on Python 2 to improve performance
|
||||||
|
# (this is already the case on Python 3).
|
||||||
|
bufsize=-1
|
||||||
)
|
)
|
||||||
|
|
||||||
def run(self, evaluator, function, args=(), kwargs={}):
|
def run(self, evaluator, function, args=(), kwargs={}):
|
||||||
|
|||||||
Reference in new issue
Block a user