From e51aeb1ca6bd59a534262631e0d43942862e0eee Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Aug 2020 10:35:10 +0000 Subject: [PATCH] "unpacking a string is disallowed" --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.py b/src/utils/http.py index 045d9641..34d6a576 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -7,7 +7,7 @@ from requests_toolbelt.adapters import source REGEX_URL = re.compile("https?://\S+", re.I) -PAIRED_CHARACTERS = ["<>", "()"] +PAIRED_CHARACTERS = [("<", ">"), ("(", ")")] # best-effort tidying up of URLs def url_sanitise(url: str):