diff --git a/uasyncio/benchmark/test_http_server_heavy.py b/uasyncio/benchmark/test_http_server_heavy.py index 65a4d4eb..3f4ba730 100644 --- a/uasyncio/benchmark/test_http_server_heavy.py +++ b/uasyncio/benchmark/test_http_server_heavy.py @@ -18,7 +18,7 @@ def serve(reader, writer): yield from writer.awrite(s * 100) yield from writer.awrite(s * 400000) yield from writer.awrite("=== END ===") - yield from writer.close() + yield from writer.aclose() except OSError as e: if e.args[0] == errno.EPIPE: print("EPIPE") diff --git a/uasyncio/benchmark/test_http_server_light.py b/uasyncio/benchmark/test_http_server_light.py index 48befebd..21dc439e 100644 --- a/uasyncio/benchmark/test_http_server_light.py +++ b/uasyncio/benchmark/test_http_server_light.py @@ -7,7 +7,7 @@ def serve(reader, writer): #print("================") yield from reader.read() yield from writer.awrite("HTTP/1.0 200 OK\r\n\r\nHello.\r\n") - yield from writer.close() + yield from writer.aclose() #print("Finished processing request") diff --git a/uasyncio/metadata.txt b/uasyncio/metadata.txt index b039ddba..7bdbfbe9 100644 --- a/uasyncio/metadata.txt +++ b/uasyncio/metadata.txt @@ -1,6 +1,6 @@ srctype = micropython-lib type = package -version = 0.7.1 +version = 0.8 author = Paul Sokolovsky long_desc = Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess. depends = errno, select, uasyncio.core diff --git a/uasyncio/setup.py b/uasyncio/setup.py index 3b39f3b4..ccb63ad6 100644 --- a/uasyncio/setup.py +++ b/uasyncio/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-uasyncio', - version='0.7.1', + version='0.8', description='uasyncio module for MicroPython', long_description='Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.', url='https://github.com/micropython/micropython/issues/405', diff --git a/uasyncio/test_http_server.py b/uasyncio/test_http_server.py index 51654d1d..9e2cf894 100644 --- a/uasyncio/test_http_server.py +++ b/uasyncio/test_http_server.py @@ -7,7 +7,7 @@ def serve(reader, writer): print((yield from reader.read())) yield from writer.awrite("HTTP/1.0 200 OK\r\n\r\nHello.\r\n") print("After response write") - yield from writer.close() + yield from writer.aclose() print("Finished processing request") diff --git a/uasyncio/uasyncio/__init__.py b/uasyncio/uasyncio/__init__.py index 5613b8f2..14a1d571 100644 --- a/uasyncio/uasyncio/__init__.py +++ b/uasyncio/uasyncio/__init__.py @@ -126,7 +126,7 @@ class StreamWriter: if __debug__: log.debug("StreamWriter.awrite(): can write more") - def close(self): + def aclose(self): yield IOWriteDone(self.s) self.s.close()