2
0
Эх сурвалжийг харах

[options] Correct option usage

Philipp Hagemeister 11 жил өмнө
parent
commit
2daabe4992

+ 3 - 1
youtube_dl/__init__.py

@@ -86,6 +86,9 @@ import random
 import sys
 import sys
 
 
 
 
+from .options import (
+    parseOpts,
+)
 from .utils import (
 from .utils import (
     compat_getpass,
     compat_getpass,
     compat_print,
     compat_print,
@@ -94,7 +97,6 @@ from .utils import (
     decodeOption,
     decodeOption,
     DownloadError,
     DownloadError,
     MaxDownloadsReached,
     MaxDownloadsReached,
-    parseOpts,
     preferredencoding,
     preferredencoding,
     read_batch_urls,
     read_batch_urls,
     SameFileError,
     SameFileError,

+ 2 - 0
youtube_dl/options.py

@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
+
 import os.path
 import os.path
 import optparse
 import optparse
 import shlex
 import shlex