http.cookies.Morsel was patched in Python 3.14.3 and 3.13.12
to raise a CookieError if the cookie name, value or any attribute
of its input contains a control character.
yt_dlp.cookies.LenientSimpleCookie now preemptively discards
any cookies containing control characters, which is consistent
with its more lenient parsing.
Ref: https://github.com/python/cpython/issues/143919Closes#15849
Authored by: bashonly, syphyr
Co-authored-by: syphyr <syphyr@gmail.com>