diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-09 23:45:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-09 23:45:44 (GMT) |
commit | dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09 (patch) | |
tree | 0c8878ba52ef21fb7058545b9ca62d1838cf9ccd /Lib/asyncio/selector_events.py | |
parent | 136fea253e438a0db6a1d24d3c23f02fcb64b7c4 (diff) | |
download | cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.zip cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.tar.gz cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.tar.bz2 |
asyncio: Tulip issue 112: Inline make_handle() into Handle constructor
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 202c14b..14231c5 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -132,7 +132,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): def add_reader(self, fd, callback, *args): """Add a reader callback.""" - handle = events.make_handle(callback, args) + handle = events.Handle(callback, args) try: key = self._selector.get_key(fd) except KeyError: @@ -167,7 +167,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): def add_writer(self, fd, callback, *args): """Add a writer callback..""" - handle = events.make_handle(callback, args) + handle = events.Handle(callback, args) try: key = self._selector.get_key(fd) except KeyError: |