Fix --extract-audio on Python 3
This commit is contained in:
parent
b375c8b946
commit
5910e210f4
2 changed files with 8 additions and 2 deletions
|
@ -51,6 +51,12 @@ try:
|
|||
except ImportError: # Python 2
|
||||
import httplib as compat_http_client
|
||||
|
||||
try:
|
||||
from subprocess import DEVNULL
|
||||
compat_subprocess_get_DEVNULL = lambda: DEVNULL
|
||||
except ImportError:
|
||||
compat_subprocess_get_DEVNULL = lambda: open(os.path.devnull, 'w')
|
||||
|
||||
try:
|
||||
from urllib.parse import parse_qs as compat_parse_qs
|
||||
except ImportError: # Python 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue