summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-09 23:45:44 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-09 23:45:44 (GMT)
commitdc62b7e261ab88b4ab967ac2ae307eddbfa0ae09 (patch)
tree0c8878ba52ef21fb7058545b9ca62d1838cf9ccd /Lib/asyncio/selector_events.py
parent136fea253e438a0db6a1d24d3c23f02fcb64b7c4 (diff)
downloadcpython-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.py4
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: