Merge pull request #739 from MetricMike/master

Fixes RuntimeWarning for improper buffering on local connection in Python 3.8+
pull/783/head^2
Alex Willmer 4 years ago committed by GitHub
commit c70244cdba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save