Skip to content

Commit

Permalink
Don't compare None to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Apr 22, 2018
1 parent b5073f2 commit b7b47fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions urllib3/util/wait.py
Expand Up @@ -61,10 +61,10 @@ def _retry_on_intr(fn, timeout):
raise
else:
timeout = deadline - monotonic()
if timeout == float("inf"):
timeout = None
if timeout < 0:
timeout = 0
if timeout == float("inf"):
timeout = None
continue


Expand Down

0 comments on commit b7b47fa

Please sign in to comment.