mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-24 01:40:23 +00:00
hmmmm
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1267 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
39502cace5
commit
b63fb15986
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ def url_norm (url):
|
|||
|
||||
def url_quote (url):
|
||||
"""quote given url"""
|
||||
if not url:
|
||||
return ""
|
||||
urlparts = list(urlparse.urlsplit(url))
|
||||
urlparts[0] = quote(urlparts[0])
|
||||
urlparts[1] = quote(urlparts[1], ':')
|
||||
|
|
|
|||
Loading…
Reference in a new issue