From 6473147a5375b87e2cf94bbf90d0a9d5ea00c508 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20B=C3=A9nard?= <ubibene@users.noreply.gitub.com>
Date: Sat, 6 May 2017 18:12:56 +0100
Subject: [PATCH] [#153] Fix SMW ask() call

Misplaced parenthesis
---
 mwclient/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index 9831aae..1e7cfe1 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -973,7 +973,7 @@ class Site(object):
         offset = 0
         while offset is not None:
             results = self.raw_api('ask', query='{query}|offset={offset}'.format(
-                query=query, offset=offset, http_method='GET'), **kwargs)
+                query=query, offset=offset), http_method='GET', **kwargs)
 
             offset = results.get('query-continue-offset')
             for result in results['query']['results']:
-- 
GitLab