summaryrefslogtreecommitdiff
path: root/src/downloader
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-10-22 08:32:06 +0200
committerPacien TRAN-GIRARD2014-10-22 08:32:06 +0200
commitaed27f919c4d24f13e725c593c9d4e2e480613ee (patch)
treedbdd6b4d2ef6dfdd3429bcff70dc7dd540e7784a /src/downloader
parentb3651e48e4cb1d90863da1d22997eff59eff74c1 (diff)
downloadwikistats-aed27f919c4d24f13e725c593c9d4e2e480613ee.tar.gz
Use proper working way to construct url
Diffstat (limited to 'src/downloader')
-rw-r--r--src/downloader/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/downloader/__init__.py b/src/downloader/__init__.py
index 830bdec..340ca7b 100644
--- a/src/downloader/__init__.py
+++ b/src/downloader/__init__.py
@@ -94,4 +94,5 @@ class WikimediaAPI():
94 "format": self.return_format, 94 "format": self.return_format,
95 "namespace": rcnamespaces[namespace], 95 "namespace": rcnamespaces[namespace],
96 } 96 }
97 return urllib.parse.urljoin(self.endpoint, urllib.parse.urlencode(url_params).encode("utf8")) 97 url_params_str = urllib.parse.urlencode(url_params).encode("utf8")
98 return urllib.parse.urljoin(self.endpoint, "?" + url_params_str)