Fix typo
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 18 Mar 2014 13:28:53 +0000 (14:28 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 18 Mar 2014 13:28:53 +0000 (14:28 +0100)
youtube_dl/utils.py

index 7e7d1e8b6fc3bcf5f604a51ecf95d8a1f68c2c8f..f60141bd1beaf6b2431fa1856dad053a9319833c 100644 (file)
@@ -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