mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
asyncio, Tulip issue 180: Make Server attributes and methods private
- loop, waiters and active_count attributes are now private - attach(), detach() and wakeup() methods are now private The sockets attribute remains public.
This commit is contained in:
parent
7aee3ecd57
commit
b28dbac86d
3 changed files with 25 additions and 24 deletions
|
@ -417,7 +417,7 @@ class _SelectorTransport(transports._FlowControlMixin,
|
|||
self._conn_lost = 0 # Set when call to connection_lost scheduled.
|
||||
self._closing = False # Set when close() called.
|
||||
if self._server is not None:
|
||||
self._server.attach(self)
|
||||
self._server._attach()
|
||||
|
||||
def abort(self):
|
||||
self._force_close(None)
|
||||
|
@ -464,7 +464,7 @@ class _SelectorTransport(transports._FlowControlMixin,
|
|||
self._loop = None
|
||||
server = self._server
|
||||
if server is not None:
|
||||
server.detach(self)
|
||||
server._detach()
|
||||
self._server = None
|
||||
|
||||
def get_write_buffer_size(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue