mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Make str.join()s more efficient
by using generator expressions and tuples instead of lists.
This commit is contained in:
@@ -24,7 +24,7 @@ def make_url(api_key, url, args=None):
|
||||
argsep = '?'
|
||||
if '?key=' not in url and '&key=' not in url:
|
||||
args.insert(0, ('key', api_key))
|
||||
return url + argsep + '&'.join(['='.join(t) for t in args])
|
||||
return url + argsep + '&'.join('='.join(t) for t in args)
|
||||
|
||||
|
||||
def get(api_key, url):
|
||||
|
||||
Reference in New Issue
Block a user