aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-19 18:21:58 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-19 18:21:58 +0100
commite07e931375df3984e4f92610413a2f52764bf432 (patch)
tree3af844173e60995d7a09b831a833dfc68680ea0f /youtube_dl/__init__.py
parent480b7c32a94db050bb216519d3b7fd4589d1e8fb (diff)
Work around 2.7.0 deficencies (Fixes #4223)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 8e186a0db..c1323b4f3 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -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)