mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
Fix typo
This commit is contained in:
parent
e68301af21
commit
4e6f9aeca1
|
@ -1285,7 +1285,7 @@ def doctype(self, name, pubid, system):
|
|||
if sys.version_info < (3, 0) and sys.platform == 'win32':
|
||||
def compat_getpass(prompt, *args, **kwargs):
|
||||
if isinstance(prompt, compat_str):
|
||||
prompt = prompt.encode(getpreferredencoding())
|
||||
prompt = prompt.encode(preferredencoding())
|
||||
return getpass.getpass(prompt, *args, **kwargs)
|
||||
else:
|
||||
compat_getpass = getpass.getpass
|
||||
|
|
Loading…
Reference in New Issue
Block a user