From ac51994fe0b3e52e82a3ef277d5c1cae37b3b358 Mon Sep 17 00:00:00 2001 From: Lukas Juhrich <lukasjuhrich@wh2.tu-dresden.de> Date: Sun, 24 Jul 2016 04:07:58 +0200 Subject: [PATCH] Minor method call improvement In this case, we can just use the bound method `self.__next__` instead of calling the unbound method of `type(self)` and giving `self` as the first parameter. --- mwclient/listing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwclient/listing.py b/mwclient/listing.py index 46bc3b8..3c9edb8 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 List.__next__(self, full=full) + return self.__next__(full=full) def next(self, full=False): """ For Python 2.x support """ -- GitLab