]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Fix Python 3 errors with rmtp downloads
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 3 Mar 2013 21:38:38 +0000 (22:38 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 3 Mar 2013 21:38:38 +0000 (22:38 +0100)
youtube_dl/FileDownloader.py

index 73f8dbd5f9f7c42f3e65e5758e49ff4d400a2ad5..57f741c306470ca174cdb0f1681885f8ee4872dc 100644 (file)
@@ -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