From baa708036c64e2dce419b5f0648ee6b84ce2132e Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 2 Nov 2014 11:26:40 +0100 Subject: [PATCH] [compat] Fix imports --- youtube_dl/compat.py | 1 + youtube_dl/utils.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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 @@ def subprocess_check_output(*args, **kwargs): 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: diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index b0255c943..620c4fe8a 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -8,7 +8,6 @@ import datetime import email.utils import errno -import getpass import gzip import itertools import io