Use system default buffering on Python 2

This commit is contained in:
micbou
2018-06-19 20:30:11 +02:00
committed by Dave Halter
parent 197aa22f29
commit f9e90e863b

View File

@@ -142,6 +142,9 @@ class _CompiledSubprocess(object):
args,
stdin=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={}):