Delete and update some Python 3.7-specific todo notes

When I wrote some of these, I was wrong about the affected versions. Upgraded
them to v3.9
This commit is contained in:
Lasse Blaauwbroek 2023-10-13 12:06:56 +02:00 committed by Jacob Alexander
parent b22763f3c6
commit cc088211dc

View file

@ -2062,7 +2062,7 @@ cdef class _DynamicCapabilityClient:
cdef public object _parent, _cached_schema cdef public object _parent, _cached_schema
def __dealloc__(self): def __dealloc__(self):
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects # Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
# appropriately # appropriately
self.thisptr = C_DynamicCapability.Client() self.thisptr = C_DynamicCapability.Client()
@ -2233,7 +2233,7 @@ cdef class TwoPartyClient:
cdef cbool closed cdef cbool closed
def __dealloc__(self): def __dealloc__(self):
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects # Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
# appropriately # appropriately
self.thisptr = Own[RpcSystem]() self.thisptr = Own[RpcSystem]()
@ -2280,7 +2280,7 @@ cdef class TwoPartyServer:
cdef cbool closed cdef cbool closed
def __dealloc__(self): def __dealloc__(self):
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects # Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
# appropriately # appropriately
self.thisptr = Own[RpcSystem]() self.thisptr = Own[RpcSystem]()
@ -2341,7 +2341,7 @@ cdef class _AsyncIoStream:
protocol.transport.close() protocol.transport.close()
def __dealloc__(self): def __dealloc__(self):
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects # Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
# appropriately # appropriately
self.thisptr = Own[AsyncIoStream]() self.thisptr = Own[AsyncIoStream]()
@ -2424,9 +2424,7 @@ cdef class DummyBaseClass:
pass pass
cdef class _PyAsyncIoStreamProtocol(DummyBaseClass, asyncio.BufferedProtocol): cdef class _PyAsyncIoStreamProtocol(DummyBaseClass, asyncio.BufferedProtocol):
# TODO: Temporary. Needed due to a missing __slots__ definitions in BufferedProtocol on Python 3.7. cdef object _task
# See https://github.com/python/cpython/issues/79575. Can be removed once Python 3.7 is unsupported.
cdef dict __dict__
cdef public object transport cdef public object transport
cdef object connected_callback cdef object connected_callback