2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

python: Don't compare None and int.

Comparing None to an integer worked in Python 2, but fails in Python 3.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Russell Bryant
2015-12-17 09:56:44 -05:00
parent da2d45c6c6
commit c03afda69a
2 changed files with 2 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ class Reconnect(object):
"""Causes the next call to poller.block() to wake up when self.run()
should be called."""
timeout = self.timeout(now)
if timeout >= 0:
if timeout is not None and timeout >= 0:
poller.timer_wait(timeout)
def timeout(self, now):