Commit a6e7d3e8 authored by cynddl's avatar cynddl
Browse files

Fix compatibility with urlpy

parent db327be9
Pipeline #2794 failed with stages
in 2 minutes and 47 seconds
......@@ -28,12 +28,12 @@ def cleanup_url(url_path, default_scheme="http"):
b'http://\xc3\xbc.com/'
"""
u = urlpy.parse(url_path)
u.defrag().deparam(URL_TRACKERS).canonical().unpunycode().strip()
u.defrag().deparam(URL_TRACKERS).canonical().unpunycode()
if u.scheme == "":
u.scheme = default_scheme
return u.utf8
return str(u.escape())
def tag_comma_splitter(tag_string):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment