Fixes RuntimeWarning for improper bufferring on local connection

(cherry picked from commit 6b5a46ccd0)
pull/800/head
Michael Weigle 4 years ago committed by Alex Willmer
parent 77f95b1e7a
commit 01dc412599

@ -3860,7 +3860,7 @@ class ExternalContext(object):
else:
core_src_fd = self.config.get('core_src_fd', 101)
if core_src_fd:
fp = os.fdopen(core_src_fd, 'rb', 1)
fp = os.fdopen(core_src_fd, 'rb', 0)
try:
core_src = fp.read()
# Strip "ExternalContext.main()" call from last line.

Loading…
Cancel
Save