def urls_equal(url1, url2):
return (<EOL>url1.without_query() == url2.without_query()<EOL>and url1.query_dict == url2.query_dict<EOL>)<EOL>
Compare two URLObjects, without regard to the order of their query strings.