aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-02 11:26:40 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-02 11:26:40 +0100
commitbaa708036c64e2dce419b5f0648ee6b84ce2132e (patch)
tree282797407c8e832254bd6e5b2a42d784f704d36f /youtube_dl/compat.py
parent8c25f81beea169c9d6540eea1a6f71dc045da6ed (diff)
[compat] Fix imports
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r--youtube_dl/compat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 08e8d64d7..3e35e2b84 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -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: