def same_urls_p(a, b):
ua = list(urlparse(a))<EOL>ub = list(urlparse(b))<EOL>ua[<NUM_LIT:4>] = parse_qs(ua[<NUM_LIT:4>])<EOL>ub[<NUM_LIT:4>] = parse_qs(ub[<NUM_LIT:4>])<EOL>return ua == ub<EOL>
Compare two URLs, ignoring reorganizing of query arguments