mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Fix isinstance usage in core.makeurl()
This commit is contained in:
parent
ee39653dc7
commit
4b487d4f99
@ -3338,9 +3338,9 @@ def makeurl(baseurl, l, query=[]):
|
||||
if conf.config['debug']:
|
||||
print('makeurl:', baseurl, l, query)
|
||||
|
||||
if isinstance(query, type(list())):
|
||||
if isinstance(query, list):
|
||||
query = '&'.join(query)
|
||||
elif isinstance(query, type(dict())):
|
||||
elif isinstance(query, dict):
|
||||
query = urlencode(query)
|
||||
|
||||
scheme, netloc, path = urlsplit(baseurl)[0:3]
|
||||
|
Loading…
Reference in New Issue
Block a user