diff --git a/mwclient/listing.py b/mwclient/listing.py index 7cb581ef7458516858cdb3ae90d0720de4aa30c2..2e626e710b90384966d49d0bc09e58087bb72604 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -67,9 +67,9 @@ class List(object): self.load_chunk() return self.__next__(full=full) - def next(self, full=False): + def next(self, *args, **kwargs): """ For Python 2.x support """ - return self.__next__(full) + return self.__next__(*args, **kwargs) def load_chunk(self): """Query a new chunk of data @@ -169,10 +169,6 @@ class GeneratorList(List): return mwclient.image.Image(self.site, u'', info) return mwclient.page.Page(self.site, u'', info) - def next(self): - """ For Python 2.x support """ - return self.__next__() - def load_chunk(self): # Put this here so that the constructor does not fail # on uninitialized sites