aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/common.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-14 14:25:04 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-14 14:25:04 +0600
commitd800609c62703e4e6edd2891a8432306462e4db3 (patch)
treeb38bc875bcaeac5a82d7e622b5188112cecd4bb6 /youtube_dl/downloader/common.py
parentc78c9cd10dfbb4fc3fd49df4f9c98e9c94c9aae9 (diff)
downloadyoutube-dl-d800609c62703e4e6edd2891a8432306462e4db3.tar.xz
[refactor] Do not specify redundant None as second argument in dict.get()
Diffstat (limited to 'youtube_dl/downloader/common.py')
-rw-r--r--youtube_dl/downloader/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index de815612c..2d5154051 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -157,7 +157,7 @@ class FileDownloader(object):
def slow_down(self, start_time, now, byte_counter):
"""Sleep if the download speed is over the rate limit."""
- rate_limit = self.params.get('ratelimit', None)
+ rate_limit = self.params.get('ratelimit')
if rate_limit is None or byte_counter == 0:
return
if now is None: