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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user