aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-03-03 22:38:38 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-03-03 22:38:38 +0100
commit967897fd227c85ebe3368b359a4f8c471e513de6 (patch)
treed7699d1d83f8785d8caf11b78cd4879dcd2d63af
parentf918ec7ea29a37521d1fc22fb9f900283c5a2c49 (diff)
Fix Python 3 errors with rmtp downloads
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 1 insertions, 1 deletions
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