From 059322e34c7e2ddf04ae0953125356ff2999e8aa Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Thu, 18 Dec 2014 13:13:33 -0800
Subject: [PATCH] fix PageList API arg passing to GeneratorList

PageList wasn't adding the 'g' prefix to API arguments it
passes to GeneratorList, and GeneratorList doesn't do that
itself. This fixes it.
---
 mwclient/listing.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mwclient/listing.py b/mwclient/listing.py
index 404efef..0e68e94 100644
--- a/mwclient/listing.py
+++ b/mwclient/listing.py
@@ -166,12 +166,12 @@ class PageList(GeneratorList):
 
         kwargs = {}
         if prefix:
-            kwargs['apprefix'] = prefix
+            kwargs['gapprefix'] = prefix
         if start:
-            kwargs['apfrom'] = start
+            kwargs['gapfrom'] = start
 
         GeneratorList.__init__(self, site, 'allpages', 'ap',
-                               apnamespace=text_type(namespace), apfilterredir=redirects, **kwargs)
+                               gapnamespace=text_type(namespace), gapfilterredir=redirects, **kwargs)
 
     def __getitem__(self, name):
         return self.get(name, None)
-- 
GitLab