X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Freconnect.py;h=8817494686678d3d3ff8eddc65d02ccdbfece1a4;hb=e7ed3a3a5f87d20f0cc632ae23adba6f30a4e19d;hp=757e7304d6d52e2be760d910c41e1b9ab27cc980;hpb=8758e8a373338e409d7f2863ee91e01060f35628;p=openvswitch diff --git a/python/ovs/reconnect.py b/python/ovs/reconnect.py index 757e7304..88174946 100644 --- a/python/ovs/reconnect.py +++ b/python/ovs/reconnect.py @@ -117,7 +117,7 @@ class Reconnect(object): % (fsm.name, (now - fsm.state_entered) / 1000.0)) return DISCONNECT - class Reconnect: + class Reconnect(object): name = "RECONNECT" is_connected = False @@ -513,8 +513,8 @@ class Reconnect(object): def timeout(self, now): """Returns the number of milliseconds after which self.run() should be - called if nothing else notable happens in the meantime, or a negative - number if this is currently unnecessary.""" + called if nothing else notable happens in the meantime, or None if this + is currently unnecessary.""" deadline = self.state.deadline(self) if deadline is not None: remaining = deadline - now