From 39a469a6a3424f1b067c2ad74eae71673cbaa276 Mon Sep 17 00:00:00 2001 From: Pierre-Selim <ps.huard@gmail.com> Date: Sat, 7 May 2016 22:07:38 +0200 Subject: [PATCH] Fix #118 Beaware argument requests from the constructor has been rename reqs --- mwclient/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mwclient/client.py b/mwclient/client.py index 7a64d2c..f9bb49d 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -55,7 +55,7 @@ class Site(object): def __init__(self, host, path='/w/', ext='.php', pool=None, retry_timeout=30, max_retries=25, wait_callback=lambda *x: None, clients_useragent=None, max_lag=3, compress=True, force_login=True, do_init=True, httpauth=None, - requests=None): + reqs=None): # Setup member variables self.host = host self.path = path @@ -64,7 +64,7 @@ class Site(object): self.compress = compress self.max_lag = text_type(max_lag) self.force_login = force_login - self.requests = requests or {} + self.requests = reqs or {} if isinstance(httpauth, (list, tuple)): self.httpauth = HTTPBasicAuth(*httpauth) -- GitLab