Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Removed a Python 3.7 compatibility shim.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed May 4, 2024
1 parent 5ce27ae commit 5f81bc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gbulb/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5f81bc2

Please sign in to comment.