⬅︎ Back to parametrize_url() adding parameters to URLs
As '?' cannot be in url_parsed.netloc, 'netloc.find('?') > -1' is always false, so that block is useless.Using '.find()' is discouraged, the Pythonic idiom is 'if "?" in netloc'.
Comment
As '?' cannot be in url_parsed.netloc, 'netloc.find('?') > -1' is always false, so that block is useless.
Using '.find()' is discouraged, the Pythonic idiom is 'if "?" in netloc'.