Blob Blame History Raw
From 9e2272d8254a1de51d27048d52efbd57ee6d19b4 Mon Sep 17 00:00:00 2001
From: Chris Seymour <christopher.seymour@nanoporetech.com>
Date: Sat, 30 Jun 2018 14:55:07 +0100
Subject: [PATCH 09/11] add __anext__ to context manager

---
 aiofiles/base.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/aiofiles/base.py b/aiofiles/base.py
index 2e9a7b1..fc20bac 100644
--- a/aiofiles/base.py
+++ b/aiofiles/base.py
@@ -70,6 +70,11 @@ class _ContextManager(Coroutine):
         resp = yield from self._coro
         return resp
 
+    @asyncio.coroutine
+    def __anext__(self):
+        resp = yield from self._coro
+        return resp
+
     @asyncio.coroutine
     def __aenter__(self):
         self._obj = yield from self._coro
-- 
2.18.0.rc2