Browse Source

[compat] Add compat_input

totalwebcasting
Sergey M․ 9 years ago
parent
commit
1ae6c83bce
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      youtube_dl/compat.py

+ 5
- 0
youtube_dl/compat.py View File

@ -482,6 +482,11 @@ if sys.version_info < (3, 0) and sys.platform == 'win32':
else:
compat_getpass = getpass.getpass
try:
compat_input = raw_input
except NameError: # Python 3
compat_input = input
# Python < 2.6.5 require kwargs to be bytes
try:
def _testfunc(x):


Loading…
Cancel
Save