remove unecessary function
This commit is contained in:
1 parent
03554fde80
commit
c436016e0c
2 files changed
+1
-14
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user