parameters: (url)
return_statement: return urlparse.urlunparse(parsed_url)
docstring: Returns normalized URL such as removing trailing slashes.
docstring_summary: Returns normalized URL such as removing trailing slashes.
docstring_tokens: Returns normalized URL such as removing trailing slashes .
function: def _NormalizeUrl(url):
    """Returns normalized URL such as removing trailing slashes."""
    parsed_url = list(urlparse.urlparse(url))
    parsed_url[2] = re.sub(r'/{2,}', r'/', parsed_url[2])
    return urlparse.urlunparse(parsed_url)
function_tokens: def _NormalizeUrl ( url ) : parsed_url = list ( urlparse . urlparse ( url ) ) parsed_url [ 2 ] = re . sub ( r'/{2,}' , r'/' , parsed_url [ 2 ] ) return urlparse . urlunparse ( parsed_url )