Skip to content
Snippets Groups Projects
Commit 3bb69719 authored by Gandalf's avatar Gandalf
Browse files

Use == operator for integer comparison.

parent f5e3e838
No related branches found
No related tags found
1 merge request!11Minor maintenance changes
......@@ -123,7 +123,7 @@ class _Upstreams(object):
@functools.lru_cache(8192)
def timeout(self, request_urn) -> int:
_, timeout = self.__TIMEOUTS.longest_prefix(str(request_urn))
if timeout is 0:
if timeout == 0:
timeout = None
return timeout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment