diff options
author | dirkf <[email protected]> | 2023-06-29 15:27:12 +0100 |
---|---|---|
committer | dirkf <[email protected]> | 2023-07-05 22:51:15 +0100 |
commit | 2500300c2a5986ace34390aa473a8bd51f83622c (patch) | |
tree | 25493d6a3fe317dada48b82ace12159e39badec4 /youtube_dl/__init__.py | |
parent | 58fc5bde47215d9e7c60647dd21202a254b3b066 (diff) | |
download | youtube-dl-2500300c2a5986ace34390aa473a8bd51f83622c.tar.gz youtube-dl-2500300c2a5986ace34390aa473a8bd51f83622c.zip |
[workflows/ci.yml] Restore test support for Py 3.2
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index e1bd67919..cc8285eba 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -5,7 +5,6 @@ from __future__ import unicode_literals __license__ = 'Public Domain' -import codecs import io import os import random @@ -17,6 +16,7 @@ from .options import ( ) from .compat import ( compat_getpass, + compat_register_utf8, compat_shlex_split, workaround_optparse_bug9161, ) @@ -46,10 +46,8 @@ from .YoutubeDL import YoutubeDL def _real_main(argv=None): - # Compatibility fixes for Windows - if sys.platform == 'win32': - # https://github.com/ytdl-org/youtube-dl/issues/820 - codecs.register(lambda name: codecs.lookup('utf-8') if name == 'cp65001' else None) + # Compatibility fix for Windows + compat_register_utf8() workaround_optparse_bug9161() |