From 4797b42005f0503c12f4ceebac3137bfe8aac901 Mon Sep 17 00:00:00 2001 From: Cody Burkard Date: Tue, 8 Jul 2014 17:29:37 -0700 Subject: [PATCH] conforming to style, and fixing documentation --- mininet/net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mininet/net.py b/mininet/net.py index e86a07d..784f20e 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -170,7 +170,7 @@ class Mininet( object ): def waitConnected( self, timeout=None ): """wait for each switch to connect to a controller, up to 5 seconds - timeout: max time to wait for switches to connect. + timeout: time to wait, or None to wait indefinitely returns: True if all switches are connected""" info( '***waiting for switches to connect\n' ) time = 0 @@ -186,7 +186,7 @@ class Mininet( object ): remaining.remove( switch ) if connected: break - if time >= timeout and not timeout == None: + if time >= timeout and timeout is not None: warn( 'Timed out after %d seconds\n' % time ) for switch in self.switches: if not switch.connected():