mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-08 22:54:51 +00:00
Remove unused url.url_unsplit()
This commit is contained in:
parent
d58b3ab285
commit
be24836c73
1 changed files with 0 additions and 7 deletions
|
|
@ -417,13 +417,6 @@ def url_needs_quoting(url):
|
|||
return not _safe_url_chars_ro.match(url)
|
||||
|
||||
|
||||
def url_unsplit(parts):
|
||||
"""Rejoin URL parts to a string."""
|
||||
if parts[2] == default_ports.get(parts[0]):
|
||||
return "%s://%s%s" % (parts[0], parts[1], parts[3])
|
||||
return "%s://%s:%d%s" % parts
|
||||
|
||||
|
||||
def splitport(host, port=0):
|
||||
"""Split optional port number from host. If host has no port number,
|
||||
the given default port is returned.
|
||||
|
|
|
|||
Loading…
Reference in a new issue