summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-10-22 08:47:10 +0200
committerPacien TRAN-GIRARD2014-10-22 08:47:10 +0200
commit7e4f6d06afdcc1887f5e225af550d3d4ab36822c (patch)
tree876289d2a4e6897b2fd24b799f0659a6a6bf50a3
parentaed27f919c4d24f13e725c593c9d4e2e480613ee (diff)
downloadwikistats-7e4f6d06afdcc1887f5e225af550d3d4ab36822c.tar.gz
Use proper really working way to construct url
-rw-r--r--src/downloader/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloader/__init__.py b/src/downloader/__init__.py
index 340ca7b..15fba41 100644
--- a/src/downloader/__init__.py
+++ b/src/downloader/__init__.py
@@ -92,7 +92,7 @@ class WikimediaAPI():
92 "action": "query", 92 "action": "query",
93 "list": "recentchanges", 93 "list": "recentchanges",
94 "format": self.return_format, 94 "format": self.return_format,
95 "namespace": rcnamespaces[namespace], 95 "rcnamespace": rcnamespaces[namespace],
96 } 96 }
97 url_params_str = urllib.parse.urlencode(url_params).encode("utf8") 97 url_params_str = urllib.parse.urlencode(url_params)
98 return urllib.parse.urljoin(self.endpoint, "?" + url_params_str) 98 return urllib.parse.urljoin(self.endpoint, "?" + url_params_str)