git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1267 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-02-21 15:06:22 +00:00
parent 39502cace5
commit b63fb15986

View file

@ -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], ':')