aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-18 14:28:53 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-18 14:28:53 +0100
commit4e6f9aeca167ce49799fd78142ccfd091bb5b143 (patch)
treefdf0744f7ce648be63b9408900622ee35bcbea52 /youtube_dl/utils.py
parente68301af21310864546b97cee77c720cf307a502 (diff)
Fix typo
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 7e7d1e8b6..f60141bd1 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1285,7 +1285,7 @@ def parse_xml(s):
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