def urlparse(url, scheme='', allow_fragments=True):
 (url, scheme, _coerce_result) = _coerce_args(url, scheme)
 splitresult = urlsplit(url, scheme, allow_fragments)
 (scheme, netloc, url, query, fragment) = splitresult
 if ((scheme in uses_params) and (';' in url)):
  (url, params) = _splitparams(url)
 else:
  params = ''
 result = ParseResult(scheme, netloc, url, params, query, fragment)
 return _coerce_result(result)

def urlparse ( url , scheme = '' , allow_fragments = True ) : ( url , scheme , _coerce_result ) = _coerce_args ( url , scheme ) splitresult = urlsplit ( url , scheme , allow_fragments ) ( scheme , netloc , url , query , fragment ) = splitresult if ( ( scheme in uses_params ) and ( ';' in url ) ) : ( url , params ) = _splitparams ( url ) else : params = '' result = ParseResult ( scheme , netloc , url , params , query , fragment ) return _coerce_result ( result )
parse an url into six components .