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:
Victor Stinner 2014-07-11 22:52:21 +02:00
parent 7aee3ecd57
commit b28dbac86d
3 changed files with 25 additions and 24 deletions

View file

@ -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):