1
0
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:
Daniel Mach 2022-08-29 13:55:09 +02:00
parent ee39653dc7
commit 4b487d4f99

View File

@ -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]