commit 967897fd227c85ebe3368b359a4f8c471e513de6
parent f918ec7ea29a37521d1fc22fb9f900283c5a2c49
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sun, 3 Mar 2013 22:38:38 +0100
Fix Python 3 errors with rmtp downloads
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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