def join_urls(*urls):
 if (not urls):
  return
 url = urls[0]
 for u in urls[1:]:
  if (not url.endswith('/')):
   url += '/'
  while u.startswith('/'):
   u = utils.lstrips(u, '/')
  url += u
 return url

def join_urls ( * urls ) : if ( not urls ) : return url = urls [ 0 ] for u in urls [ 1 : ] : if ( not url . endswith ( '/' ) ) : url += '/' while u . startswith ( '/' ) : u = utils . lstrips ( u , '/' ) url += u return url
joins a series of urls together without doubles slashes .