Fixes RuntimeWarning for improper bufferring on local connection

pull/739/head
Michael Weigle 4 years ago
parent 522085ab35
commit 6b5a46ccd0
No known key found for this signature in database
GPG Key ID: CC3E16C90D17E632

@ -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