diff options
author | sepro <sepro@sepr0.com> | 2024-11-17 00:24:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-17 00:24:11 +0100 |
commit | f95a92b3d0169a784ee15a138fbe09d82b2754a1 (patch) | |
tree | fa1e62aceeea805b1f8ed79ec810ee904aaf1b10 /test/helper.py | |
parent | 1d253b0a27110d174c40faf8fb1c999d099e0cde (diff) |
[cleanup] Deprecate more compat functions (#11439)
Authored by: seproDev
Diffstat (limited to 'test/helper.py')
-rw-r--r-- | test/helper.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/helper.py b/test/helper.py index 3b550d192..c776e70b7 100644 --- a/test/helper.py +++ b/test/helper.py @@ -9,7 +9,6 @@ import types import yt_dlp.extractor from yt_dlp import YoutubeDL -from yt_dlp.compat import compat_os_name from yt_dlp.utils import preferredencoding, try_call, write_string, find_available_port if 'pytest' in sys.modules: @@ -49,7 +48,7 @@ def report_warning(message, *args, **kwargs): Print the message to stderr, it will be prefixed with 'WARNING:' If stderr is a tty file the 'WARNING:' will be colored """ - if sys.stderr.isatty() and compat_os_name != 'nt': + if sys.stderr.isatty() and os.name != 'nt': _msg_header = '\033[0;33mWARNING:\033[0m' else: _msg_header = 'WARNING:' |