asyncio: Improve support Python 3.8 on Windows
self._thread_identity = 0
- super(BaseAsyncIOLoop, self).initialize(**kwargs)
+ super().initialize(**kwargs)
def assign_thread_identity() -> None:
- self._thread_identity = get_ident()
+ self._thread_identity = threading.get_ident()
self.add_callback(assign_thread_identity)
self.server_stream.close()
if self.client_stream is not None:
self.client_stream.close()
+ self.io_loop.remove_handler(self.listener.fileno())
self.listener.close()
- super(TestIOStreamStartTLS, self).tearDown()
+ super().tearDown()
def accept(self, connection, address):
if self.server_stream is not None: