bad variable name
This commit is contained in:
parent
667483fc49
commit
977399f938
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue