diff --git a/src/gbulb/transports.py b/src/gbulb/transports.py index 1d31d78..ac5ee9b 100644 --- a/src/gbulb/transports.py +++ b/src/gbulb/transports.py @@ -105,8 +105,7 @@ def __init__(self, *args, **kwargs): self._loop.call_soon(self._loop_reading) def set_protocol(self, protocol): - if hasattr(asyncio, "BufferedProtocol"): # Python 3.7+ - self._alloc_read_buffers = isinstance(protocol, asyncio.BufferedProtocol) + self._alloc_read_buffers = isinstance(protocol, asyncio.BufferedProtocol) super().set_protocol(protocol) def pause_reading(self):