From 6b5a46ccd0db58f89d19f5b05fd0f2628b722c44 Mon Sep 17 00:00:00 2001 From: Michael Weigle Date: Tue, 25 Aug 2020 19:03:45 -0400 Subject: [PATCH] Fixes RuntimeWarning for improper bufferring on local connection --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 4dd44925..5deac358 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -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.