From: Philipp Hagemeister Date: Fri, 19 Oct 2012 21:28:37 +0000 (+0200) Subject: Don't use 2.7+ check_output X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=073522bc6c5cfdb379bb48976d76e0e5505ae2d1;p=youtube-dl.git Don't use 2.7+ check_output --- 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 @@ class FFmpegExtractAudioPP(PostProcessor): 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