diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-24 16:24:43 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-25 00:14:12 +0530 |
commit | 14f25df2b6233553e968df023430ca96c0b1df9f (patch) | |
tree | c611d59d4462820a9e99726b9179811ed88a35b8 /test/test_youtube_signature.py | |
parent | 54007a45f11ed730352324289b714baefd2901eb (diff) | |
download | hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.lz hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.xz hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.zip |
[compat] Remove deprecated functions from core code
Diffstat (limited to 'test/test_youtube_signature.py')
-rw-r--r-- | test/test_youtube_signature.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py index 56304772b..4fc2917e5 100644 --- a/test/test_youtube_signature.py +++ b/test/test_youtube_signature.py @@ -14,7 +14,6 @@ import string import urllib.request from test.helper import FakeYDL, is_download_test -from yt_dlp.compat import compat_str from yt_dlp.extractor import YoutubeIE from yt_dlp.jsinterp import JSInterpreter @@ -159,7 +158,7 @@ def t_factory(name, sig_func, url_pattern): def signature(jscode, sig_input): func = YoutubeIE(FakeYDL())._parse_sig_js(jscode) src_sig = ( - compat_str(string.printable[:sig_input]) + str(string.printable[:sig_input]) if isinstance(sig_input, int) else sig_input) return func(src_sig) |