From bf327f755a107cfdfeb4f056ee06c328c4bdd8f7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 22 May 2017 13:21:54 +0300 Subject: [PATCH] uasyncio.core: Fix args handling for call_soon/call_later/call_later_ms. --- uasyncio.core/uasyncio/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uasyncio.core/uasyncio/core.py b/uasyncio.core/uasyncio/core.py index 6ba8af43..feb0d50a 100644 --- a/uasyncio.core/uasyncio/core.py +++ b/uasyncio.core/uasyncio/core.py @@ -29,12 +29,12 @@ class EventLoop: # CPython asyncio incompatibility: we don't return Task object def call_soon(self, callback, *args): - self.call_at_(self.time(), callback, *args) + self.call_at_(self.time(), callback, args) def call_later(self, delay, callback, *args): - self.call_at_(time.ticks_add(self.time(), int(delay * 1000)), callback, *args) + self.call_at_(time.ticks_add(self.time(), int(delay * 1000)), callback, args) - def call_later_ms(self, delay, callback, args=()): + def call_later_ms(self, delay, callback, *args): self.call_at_(time.ticks_add(self.time(), delay), callback, args) def call_at_(self, time, callback, args=()):