mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-12 14:10:35 +01:00
Bugfix for 59f943cd5097e9bdbc3cb3e6b5675e43d369341a
Fixes: 59f943cd50 (commitcomment-73251597)
This commit is contained in:
parent
0f06bcd759
commit
fe1daad3cb
@ -1881,8 +1881,7 @@ def write_string(s, out=None, encoding=None):
|
||||
assert isinstance(s, str)
|
||||
out = out or sys.stderr
|
||||
|
||||
from .compat import WINDOWS_VT_MODE # Must be imported locally
|
||||
if WINDOWS_VT_MODE:
|
||||
if compat_os_name == 'nt' and supports_terminal_sequences(out):
|
||||
s = re.sub(r'([\r\n]+)', r' \1', s)
|
||||
|
||||
if 'b' in getattr(out, 'mode', ''):
|
||||
|
Loading…
x
Reference in New Issue
Block a user