Message219328
In Lib/asyncio/base_events.py, we have these lines of code:
-----------------------------------------------------------
def attach(self, transport):
assert self.sockets is not None
self.active_count += 1
def detach(self, transport):
assert self.active_count > 0
self.active_count -= 1
if self.active_count == 0 and self.sockets is None:
self._wakeup()
------------------------------------------------------------
The transport is not used. We can remove them. Here is the patch to remove the arguments.
If for higher philosophical reason, we need this unused argument, maybe we can comment it. |
|
Date |
User |
Action |
Args |
2014-05-29 03:16:17 | vajrasky | set | recipients:
+ vajrasky, vstinner |
2014-05-29 03:16:17 | vajrasky | set | messageid: <1401333377.1.0.573803029837.issue21599@psf.upfronthosting.co.za> |
2014-05-29 03:16:16 | vajrasky | link | issue21599 messages |
2014-05-29 03:16:16 | vajrasky | create | |
|