From: Philipp Hagemeister Date: Sun, 3 Mar 2013 21:38:38 +0000 (+0100) Subject: Fix Python 3 errors with rmtp downloads X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=967897fd227c85ebe3368b359a4f8c471e513de6;p=youtube-dl Fix Python 3 errors with rmtp downloads --- diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 73f8dbd5f..57f741c30 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -575,7 +575,7 @@ class FileDownloader(object): # Check for rtmpdump first try: - subprocess.call(['rtmpdump', '-h'], stdout=(file(os.path.devnull, 'w')), stderr=subprocess.STDOUT) + subprocess.call(['rtmpdump', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT) except (OSError, IOError): self.trouble(u'ERROR: RTMP download detected but "rtmpdump" could not be run') return False