"unpacking a string is disallowed"

This commit is contained in:
jesopo 2020-08-26 10:35:10 +00:00
parent eec8d1a6a6
commit e51aeb1ca6

View file

@ -7,7 +7,7 @@ from requests_toolbelt.adapters import source
REGEX_URL = re.compile("https?://\S+", re.I) REGEX_URL = re.compile("https?://\S+", re.I)
PAIRED_CHARACTERS = ["<>", "()"] PAIRED_CHARACTERS = [("<", ">"), ("(", ")")]
# best-effort tidying up of URLs # best-effort tidying up of URLs
def url_sanitise(url: str): def url_sanitise(url: str):