diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-02-20 18:13:43 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-03-02 10:40:23 -0500 |
commit | fab5a1e0f492f920270c661954802749dfac5fa1 (patch) | |
tree | 41178ec05f2952b36a42cac3525a8bd7e541c061 /test/functional/test_framework/mininode.py | |
parent | fa6bf21f5ef8b27e8525cabba9738f8e1f246bf5 (diff) |
build: Require python 3.5
Diffstat (limited to 'test/functional/test_framework/mininode.py')
-rwxr-xr-x | test/functional/test_framework/mininode.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index ac7cc068bd..ee070981ed 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -218,10 +218,7 @@ class P2PConnection(asyncio.Protocol): def maybe_write(): if not self._transport: return - # Python <3.4.4 does not have is_closing, so we have to check for - # its existence explicitly as long as Bitcoin Core supports all - # Python 3.4 versions. - if hasattr(self._transport, 'is_closing') and self._transport.is_closing(): + if self._transport.is_closing(): return self._transport.write(raw_message_bytes) NetworkThread.network_event_loop.call_soon_threadsafe(maybe_write) |