From e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 26 Dec 2020 19:35:45 -0800 Subject: Remove obsolete uppercase_escape function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function was only necessary with the old ajax format, which was removed in 4d7bba92eb62518e2273d030235214f4a7605444 Signed-off-by: Jesús --- youtube/util.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'youtube/util.py') diff --git a/youtube/util.py b/youtube/util.py index 1d7eb59..e7b12ad 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -476,12 +476,6 @@ def update_query_string(query_string, items): return urllib.parse.urlencode(parameters, doseq=True) -def uppercase_escape(s): - return re.sub( - r'\\U([0-9a-fA-F]{8})', - lambda m: chr(int(m.group(1), base=16)), s) - - def prefix_url(url): if url is None: return None -- cgit v1.2.3