This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients vajrasky, vstinner
Date 2014-05-29.03:16:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401333377.1.0.573803029837.issue21599@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-05-29 03:16:17vajraskysetrecipients: + vajrasky, vstinner
2014-05-29 03:16:17vajraskysetmessageid: <1401333377.1.0.573803029837.issue21599@psf.upfronthosting.co.za>
2014-05-29 03:16:16vajraskylinkissue21599 messages
2014-05-29 03:16:16vajraskycreate