diff --git a/mwclient/listing.py b/mwclient/listing.py index 253bbe9bd8fc9bd72b7125bb4a63d9013353002c..c82e2e307e5890bfd2f6ec39f037ec7fe1253a24 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -200,3 +200,10 @@ class PagePropertyGenerator(GeneratorList): def __init__(self, page, prop, prefix, *args, **kwargs): GeneratorList.__init__(self, page.site, prop, prefix, titles = page.name, *args, **kwargs) self.page = page + +class RevisionsIterator(PageProperty): + def load_chunk(self): + if 'rvstartid' in self.args and 'rvstart' in self.args: + del self.args['rvstart'] + return listing.PageProperty.load_chunk(self) + \ No newline at end of file diff --git a/mwclient/page.py b/mwclient/page.py index 3cfee9940a931d82146931ca8f5df84be285c212..93b788653eab3bfe250f1b79fcfd9b0a49b719f1 100644 --- a/mwclient/page.py +++ b/mwclient/page.py @@ -313,9 +313,3 @@ class Image(Page): def __repr__(self): return "<Image object '%s' for %s>" % (self.name.encode('utf-8'), self.site) -class RevisionsIterator(listing.PageProperty): - def load_chunk(self): - if 'rvstartid' in self.args and 'rvstart' in self.args: - del self.args['rvstart'] - return listing.PageProperty.load_chunk(self) - \ No newline at end of file