diff --git a/mwclient/client.py b/mwclient/client.py index 72180342c6ef0698929283cb3f0fdeddab8aeda6..0d26debd760f3715791e7e1f3c690bde5474669e 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -185,6 +185,9 @@ class Site(object): The raw response from the API call, as a dictionary. """ kwargs.update(args) + + if 'continue' not in kwargs: + kwargs['continue'] = '' if action == 'query': if 'meta' in kwargs: kwargs['meta'] += '|userinfo' diff --git a/mwclient/listing.py b/mwclient/listing.py index df7ca3f9fba7b706aff453a63bc5e82c1a287538..404efefddc2656de367b5cda0c06747d355b386a 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -18,8 +18,6 @@ class List(object): if limit is None: limit = site.api_limit self.args[self.prefix + 'limit'] = text_type(limit) - if 'continue' not in self.args: - self.args['continue'] = '' self.count = 0 self.max_items = max_items diff --git a/tests/test_page.py b/tests/test_page.py index e166fa03ea514b3db38ac8edf492aa5e9cfec09d..c7a5e42b109727a42555f10b31b782b1e4cda9cd 100644 --- a/tests/test_page.py +++ b/tests/test_page.py @@ -235,8 +235,7 @@ class TestPageApiArgs(unittest.TestCase): 'rvdir': 'older', 'titles': self.page.page_title, 'rvprop': 'content|timestamp', - 'rvlimit': '1', - 'continue': '' + 'rvlimit': '1' } def test_get_section_text(self):