From 073522bc6c5cfdb379bb48976d76e0e5505ae2d1 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 19 Oct 2012 23:28:37 +0200 Subject: [PATCH] Don't use 2.7+ check_output --- youtube_dl/PostProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py index f2e2aa1fa..d14fe71a2 100644 --- a/youtube_dl/PostProcessor.py +++ b/youtube_dl/PostProcessor.py @@ -73,7 +73,7 @@ def __init__(self, downloader=None, preferredcodec=None, preferredquality=None, def detect_executables(): def executable(exe): try: - subprocess.check_output([exe, '-version']) + subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() except OSError: return False return exe