2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +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

@@ -93,7 +93,7 @@ def do_advance(arg):
def do_timeout(_):
global now
timeout = r.timeout(now)
if timeout >= 0:
if timeout is not None and timeout >= 0:
print(" advance %d ms" % timeout)
now += timeout
else: