mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 13:54:22 -07:00
[workflows/ci.yml] Restore test support for Py 3.2
This commit is contained in:
parent
58fc5bde47
commit
2500300c2a
6 changed files with 328 additions and 30 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue