bad variable name

This commit is contained in:
Valentin Samir 2015-05-16 23:48:04 +02:00
parent 667483fc49
commit 977399f938

View file

@ -2,8 +2,7 @@ import urlparse
import urllib import urllib
def update_url(url, params): def update_url(url, params):
url = urlparse.urlparse(url) url_parts = list(urlparse.urlparse(url))
url_parts = list(urlparse.urlparse(service))
query = dict(urlparse.parse_qsl(url_parts[4])) query = dict(urlparse.parse_qsl(url_parts[4]))
query.update(params) query.update(params)
url_parts[4] = urllib.urlencode(query) url_parts[4] = urllib.urlencode(query)