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/proactor_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/proactor_events.py')
-rw-r--r-- | Lib/asyncio/proactor_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py index fa24795..d0b601d 100644 --- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -35,7 +35,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin, self._closing = False # Set when close() called. self._eof_written = False if self._server is not None: - self._server.attach(self) + self._server._attach() self._loop.call_soon(self._protocol.connection_made, self) if waiter is not None: # wait until protocol.connection_made() has been called @@ -91,7 +91,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin, self._sock.close() server = self._server if server is not None: - server.detach(self) + server._detach() self._server = None def get_write_buffer_size(self): |