[refactor] Do not specify redundant None as second argument in dict.get()
This commit is contained in:
parent
c78c9cd10d
commit
d800609c62
10 changed files with 28 additions and 28 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue