Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf92d88

Browse files
committed
fix: Address Python2 unittest warning
1 parent c6e272e commit bf92d88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth0/v3/management/rest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ def get(self, url, params=None):
9393
# Retry the request. Apply a exponential backoff for subsequent attempts, using this formula:
9494
# max(MIN_REQUEST_RETRY_DELAY, min(MAX_REQUEST_RETRY_DELAY, (100ms * (2 ** attempt - 1)) + random_between(1, MAX_REQUEST_RETRY_JITTER)))
9595

96-
# Increases base delay by (100ms * (2 ** attempt - 1))
96+
# Increases base delay by (100ms * (2 ** attempt - 1))
9797
wait = 100 * 2 ** (attempt - 1)
9898

99-
# Introduces jitter to the base delay; increases delay between 1ms to MAX_REQUEST_RETRY_JITTER (100ms)
99+
# Introduces jitter to the base delay; increases delay between 1ms to MAX_REQUEST_RETRY_JITTER (100ms)
100100
wait += randint(1, self.MAX_REQUEST_RETRY_JITTER())
101101

102-
# Is never more than MAX_REQUEST_RETRY_DELAY (1s)
102+
# Is never more than MAX_REQUEST_RETRY_DELAY (1s)
103103
wait = min(self.MAX_REQUEST_RETRY_DELAY(), wait)
104104

105-
# Is never less than MIN_REQUEST_RETRY_DELAY (100ms)
105+
# Is never less than MIN_REQUEST_RETRY_DELAY (100ms)
106106
wait = max(self.MIN_REQUEST_RETRY_DELAY(), wait)
107107

108108
self._metrics['retries'] = attempt

0 commit comments

Comments
 (0)