A feature-rich command-line audio/video downloader
Remove longs (int does the right thing since Python 2.2, see PEP 237)
Philipp Hagemeister7ec1a206eaed
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.pyindex 9feff9bb0d..ff6963262c 100644--- a/youtube_dl/FileDownloader.py+++ b/youtube_dl/FileDownloader.py@@ -139,23 +139,23 @@ class FileDownloader(object):new_min = max(bytes / 2.0, 1.0)new_max = min(max(bytes * 2.0, 1.0), 4194304) # Do not surpass 4 MBif elapsed_time < 0.001:- return long(new_max)+ return int(new_max)rate = bytes / elapsed_timeif rate > new_max:- return long(new_max)+ return int(new_max)if rate < new_min:- return long(new_min)- return long(rate)+ return int(new_min)+ return int(rate)@staticmethoddef parse_bytes(bytestr):- """Parse a string indicating a byte quantity into a long integer."""+ """Parse a string indicating a byte quantity into an integer."""matchobj = re.match(r'(?i)^(\d+(?:\.\d+)?)([kMGTPEZY]?)$', bytestr)if matchobj is None:return Nonenumber = float(matchobj.group(1))multiplier = 1024.0 ** 'bkmgtpezy'.index(matchobj.group(2).lower())- return long(round(number * multiplier))+ return int(round(number * multiplier))def add_info_extractor(self, ie):"""Add an InfoExtractor object to the end of the list."""