From b88cb425f86acb0ad659fa8b8c3993770a6032ac Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 13 Nov 2014 06:36:45 +0200 Subject: [PATCH] uasyncio.core: Typo fix in recently added .create_task() method. --- uasyncio.core/metadata.txt | 2 +- uasyncio.core/setup.py | 2 +- uasyncio.core/uasyncio/core.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uasyncio.core/metadata.txt b/uasyncio.core/metadata.txt index 6f1601d7..a13a386e 100644 --- a/uasyncio.core/metadata.txt +++ b/uasyncio.core/metadata.txt @@ -1,6 +1,6 @@ srctype = micropython-lib type = package -version = 0.8 +version = 0.8.1 author = Paul Sokolovsky long_desc = Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess. (Core event loop). depends = heapq, logging diff --git a/uasyncio.core/setup.py b/uasyncio.core/setup.py index 425da4a2..6ed08cd1 100644 --- a/uasyncio.core/setup.py +++ b/uasyncio.core/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-uasyncio.core', - version='0.8', + version='0.8.1', description='uasyncio.core module for MicroPython', long_description='Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess. (Core event loop).', url='https://github.com/micropython/micropython/issues/405', diff --git a/uasyncio.core/uasyncio/core.py b/uasyncio.core/uasyncio/core.py index 500c21d3..30bda183 100644 --- a/uasyncio.core/uasyncio/core.py +++ b/uasyncio.core/uasyncio/core.py @@ -18,7 +18,7 @@ class EventLoop: def create_task(self, coro): # CPython 3.4.2 - self.call_at(0, callback) + self.call_at(0, coro) # CPython asyncio incompatibility: we don't return Task object def call_soon(self, callback, *args):