summaryrefslogtreecommitdiff
path: root/src/downloader/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloader/__init__.py')
-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)