You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In form.py , there is the function domain_name which extracts the domain name. It uses urlparse.urlparse() which is less performant than urlparse.urlsplit().
defdomain_name(url):
'''Extract the domain name of a sanitized version of the submitted URL.'''# Removing leading spacesurl=url.lstrip()
# testing if it's an http URLifurl.startswith(SCHEMES):
domain=urlparse.urlparse(url).netlocelse:
domain=Nonereturndomain
The text was updated successfully, but these errors were encountered:
In form.py , there is the function
domain_name
which extracts the domain name. It usesurlparse.urlparse()
which is less performant thanurlparse.urlsplit()
.The text was updated successfully, but these errors were encountered: