From 8936435ae759786d007b20cdd2127fac56ab2bf2 Mon Sep 17 00:00:00 2001
From: Chris Seymour <christopher.seymour@nanoporetech.com>
Date: Sat, 30 Jun 2018 15:54:47 +0100
Subject: [PATCH 10/11] Starting with Python 3.7, __aiter__ must return an
asynchronous iterator object. Returning anything else will result in a
TypeError error.
https://docs.python.org/3/reference/datamodel.html#asynchronous-iterators
---
aiofiles/base.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/aiofiles/base.py b/aiofiles/base.py
index fc20bac..72a835e 100644
--- a/aiofiles/base.py
+++ b/aiofiles/base.py
@@ -9,8 +9,6 @@ class AsyncBase:
self._loop = loop
self._executor = executor
-
- @asyncio.coroutine
def __aiter__(self):
"""We are our own iterator."""
return self
--
2.18.0.rc2