[refactor] Do not specify redundant None as second argument in dict.get()

This commit is contained in:
Sergey M․ 2016-02-14 14:25:04 +06:00
parent c78c9cd10d
commit d800609c62
10 changed files with 28 additions and 28 deletions

View file

@ -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: