]> granicus.if.org Git - python/commit
asyncio: Move loop attribute to _FlowControlMixin
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 5 Nov 2014 14:27:41 +0000 (15:27 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 5 Nov 2014 14:27:41 +0000 (15:27 +0100)
commit004adb91f6e05ac711b0554bbd0415a48fed623c
tree9325ab7de23395c0ceac21cf41c49be001be4240
parent7e8b8678f141d4e8198002972219895280b2d62d
asyncio: Move loop attribute to _FlowControlMixin

Move the _loop attribute from the constructor of _SelectorTransport,
_ProactorBasePipeTransport and _UnixWritePipeTransport classes to the
constructor of the _FlowControlMixin class.

Add also an assertion to explicit that the parent class must ensure that the
loop is defined (not None)
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Lib/asyncio/transports.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_transports.py