mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 13:54:22 -07:00
[compat] Clean-up
* make workaround_optparse_bug9161 private * add comments * avoid leaving test objects behind
This commit is contained in:
parent
673277e510
commit
cecaa18b80
2 changed files with 129 additions and 47 deletions
|
@ -18,7 +18,7 @@ from .compat import (
|
|||
compat_getpass,
|
||||
compat_register_utf8,
|
||||
compat_shlex_split,
|
||||
workaround_optparse_bug9161,
|
||||
_workaround_optparse_bug9161,
|
||||
)
|
||||
from .utils import (
|
||||
_UnsafeExtensionError,
|
||||
|
@ -50,7 +50,7 @@ def _real_main(argv=None):
|
|||
# Compatibility fix for Windows
|
||||
compat_register_utf8()
|
||||
|
||||
workaround_optparse_bug9161()
|
||||
_workaround_optparse_bug9161()
|
||||
|
||||
setproctitle('youtube-dl')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue