Work around 2.7.0 deficencies (Fixes #4223)

This commit is contained in:
Philipp Hagemeister 2014-11-19 18:21:58 +01:00
parent 480b7c32a9
commit e07e931375
2 changed files with 25 additions and 0 deletions

View file

@ -19,6 +19,7 @@ from .compat import (
compat_expanduser,
compat_getpass,
compat_print,
workaround_optparse_bug9161,
)
from .utils import (
DateRange,
@ -57,6 +58,8 @@ def _real_main(argv=None):
# https://github.com/rg3/youtube-dl/issues/820
codecs.register(lambda name: codecs.lookup('utf-8') if name == 'cp65001' else None)
workaround_optparse_bug9161()
setproctitle('youtube-dl')
parser, opts, args = parseOpts(argv)