def urljoin_bytes(*atoms):
 url = ntob('/').join([x for x in atoms if x])
 while (ntob('//') in url):
  url = url.replace(ntob('//'), ntob('/'))
 return (url or ntob('/'))

def urljoin_bytes ( * atoms ) : url = ntob ( '/' ) . join ( [ x for x in atoms if x ] ) while ( ntob ( '//' ) in url ) : url = url . replace ( ntob ( '//' ) , ntob ( '/' ) ) return ( url or ntob ( '/' ) )
return the given path *atoms .