mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 21:03:18 +00:00
[compat] Fix imports
This commit is contained in:
parent
8c25f81bee
commit
baa708036c
|
@ -280,6 +280,7 @@ def subprocess_check_output(*args, **kwargs):
|
||||||
if sys.version_info < (3, 0) and sys.platform == 'win32':
|
if sys.version_info < (3, 0) and sys.platform == 'win32':
|
||||||
def compat_getpass(prompt, *args, **kwargs):
|
def compat_getpass(prompt, *args, **kwargs):
|
||||||
if isinstance(prompt, compat_str):
|
if isinstance(prompt, compat_str):
|
||||||
|
from .utils import preferredencoding
|
||||||
prompt = prompt.encode(preferredencoding())
|
prompt = prompt.encode(preferredencoding())
|
||||||
return getpass.getpass(prompt, *args, **kwargs)
|
return getpass.getpass(prompt, *args, **kwargs)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
import datetime
|
import datetime
|
||||||
import email.utils
|
import email.utils
|
||||||
import errno
|
import errno
|
||||||
import getpass
|
|
||||||
import gzip
|
import gzip
|
||||||
import itertools
|
import itertools
|
||||||
import io
|
import io
|
||||||
|
|
Loading…
Reference in a new issue