diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-11 20:52:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-11 20:52:21 (GMT) |
commit | b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe (patch) | |
tree | 0fa5020d6f64ce59dde286c68157ad7ca99ec88e /Lib/asyncio/selector_events.py | |
parent | 7aee3ecd57c5d7a455420dd514206e239c7dbc39 (diff) | |
download | cpython-b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe.zip cpython-b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe.tar.gz cpython-b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe.tar.bz2 |
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.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r-- | Lib/asyncio/selector_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index 7b364ad..b965046 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -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): |