aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2016-06-04 22:55:21 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2016-06-04 22:55:21 +0200
commitc93b4eacebe62e3993da790cbea8fbf62e161f07 (patch)
tree1b6a356fa6d0fa38f76a466012fc630096f94f9b /youtube_dl/compat.py
parent71b9cb3107e156c7f17ec4cdf1d09421cb4dd4b1 (diff)
parent633b444fd29aa9d8b3ba722285ae2475ae66595f (diff)
git pushMerge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r--youtube_dl/compat.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 06e5f3ff6..fabac9fd2 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -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):