1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

[compat] Fix imports

This commit is contained in:
Philipp Hagemeister 2014-11-02 11:26:40 +01:00
parent 8c25f81bee
commit baa708036c
2 changed files with 1 additions and 1 deletions

View file

@ -280,6 +280,7 @@ except AttributeError:
if sys.version_info < (3, 0) and sys.platform == 'win32':
def compat_getpass(prompt, *args, **kwargs):
if isinstance(prompt, compat_str):
from .utils import preferredencoding
prompt = prompt.encode(preferredencoding())
return getpass.getpass(prompt, *args, **kwargs)
else:

View file

@ -8,7 +8,6 @@ import ctypes
import datetime
import email.utils
import errno
import getpass
import gzip
import itertools
import io