1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 01:01:39 +00:00
This commit is contained in:
Philipp Hagemeister 2014-03-18 14:28:53 +01:00
parent e68301af21
commit 4e6f9aeca1

View file

@ -1285,7 +1285,7 @@ def parse_xml(s):
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):
prompt = prompt.encode(getpreferredencoding()) prompt = prompt.encode(preferredencoding())
return getpass.getpass(prompt, *args, **kwargs) return getpass.getpass(prompt, *args, **kwargs)
else: else:
compat_getpass = getpass.getpass compat_getpass = getpass.getpass