From 503dd65e3f0f63f2a2e3c24b7849e72a5881d12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com> Date: Tue, 23 Aug 2016 22:07:15 +0200 Subject: [PATCH] Quickfix for #135 Putting back an explicit reference to `List` to avoid `GeneratorList.__next__` being called. --- mwclient/listing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwclient/listing.py b/mwclient/listing.py index 421837e..c3e7234 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -65,7 +65,7 @@ class List(object): if self.last: raise StopIteration self.load_chunk() - return self.__next__(full=full) + return List.__next__(self, full=full) def next(self, *args, **kwargs): """ For Python 2.x support """ -- GitLab