lint: Clean up W503 PEP-8 warning.
This commit is contained in:
parent
4b015ecdff
commit
07cdd69e42
5 changed files with 27 additions and 27 deletions
|
@ -79,9 +79,9 @@ class CountingBackoff(object):
|
|||
|
||||
def _check_success_timeout(self):
|
||||
# type: () -> None
|
||||
if (self.timeout_success_equivalent is not None
|
||||
and self.last_attempt_time != 0
|
||||
and time.time() - self.last_attempt_time > self.timeout_success_equivalent):
|
||||
if (self.timeout_success_equivalent is not None and
|
||||
self.last_attempt_time != 0 and
|
||||
time.time() - self.last_attempt_time > self.timeout_success_equivalent):
|
||||
self.number_of_retries = 0
|
||||
|
||||
class RandomExponentialBackoff(CountingBackoff):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue