mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-11-04 10:02:48 +01:00
[compat] Add compat_input
This commit is contained in:
parent
0fc832e1b2
commit
1ae6c83bce
@ -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…
Reference in New Issue
Block a user