remove unecessary function

This commit is contained in:
2018-08-31 19:16:08 +01:00
parent 03554fde80
commit c436016e0c
2 changed files with 1 additions and 14 deletions

View File

@@ -118,16 +118,3 @@ def sanitise_url(url):
base_url = "".join([default_proto, delim, split_url.path])
return base_url
def qualify_url(base_url=None, url=None):
'''
Ensure any URLs discovered are absolute. If relative,
they will be appended to the base URL. Returns an
absolute URL as a string.
'''
if url.startswith('/'):
return urljoin(base_url, url)
if url.startswith(base_url):
return url