[compat] Clean-up

* make workaround_optparse_bug9161 private
* add comments
* avoid leaving test objects behind
This commit is contained in:
dirkf 2025-03-07 23:03:17 +00:00
commit cecaa18b80
2 changed files with 129 additions and 47 deletions

View file

@ -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')