Merge pull request #739 from MetricMike/master
Fixes RuntimeWarning for improper buffering on local connection in Python 3.8+
This commit is contained in:
commit
c70244cdba
|
@ -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…
Reference in New Issue