Fix RequestIter.__anext__ without __ainit__ (#1142)

This commit is contained in:
bugchecker 2019-03-29 17:32:00 +00:00 committed by Lonami
parent 5377169db2
commit 7225b7a40f

View File

@ -32,11 +32,11 @@ class RequestIter(abc.ABC):
self.wait_time = wait_time
self.kwargs = kwargs
self.limit = max(float('inf') if limit is None else limit, 0)
self.left = None
self.left = self.limit
self.buffer = None
self.index = None
self.index = 0
self.total = None
self.last_load = None
self.last_load = 0
async def _init(self, **kwargs):
"""