Browse Source

[compat] Fix imports

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
baa708036c
2 changed files with 1 additions and 1 deletions
  1. +1
    -0
      youtube_dl/compat.py
  2. +0
    -1
      youtube_dl/utils.py

+ 1
- 0
youtube_dl/compat.py View File

@ -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:


+ 0
- 1
youtube_dl/utils.py View File

@ -8,7 +8,6 @@ import ctypes
import datetime
import email.utils
import errno
import getpass
import gzip
import itertools
import io


Loading…
Cancel
Save