diff --git a/examples/consoles.py b/examples/consoles.py index 698a242..35fa205 100755 --- a/examples/consoles.py +++ b/examples/consoles.py @@ -170,10 +170,10 @@ class Graph( Frame ): "Graph that we can add bars to over time." def __init__( self, parent=None, - bg = 'white', - gheight=200, gwidth=500, - barwidth=10, - ymax=3.5,): + bg = 'white', + gheight=200, gwidth=500, + barwidth=10, + ymax=3.5,): Frame.__init__( self, parent ) diff --git a/examples/miniedit.py b/examples/miniedit.py index 2889533..d90c685 100755 --- a/examples/miniedit.py +++ b/examples/miniedit.py @@ -475,7 +475,7 @@ class MiniEdit( Frame ): target = self.findItem( x, y ) dest = self.itemToWidget.get( target, None ) if ( source is None or dest is None or source == dest - or dest in source.links or source in dest.links ): + or dest in source.links or source in dest.links ): self.releaseLink( event ) return # For now, don't allow hosts to be directly linked diff --git a/mininet/net.py b/mininet/net.py index 17c7133..9c39bb7 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -515,7 +515,7 @@ class Mininet( object ): servout += server.monitor() if l4Type == 'TCP': while 'Connected' not in client.cmd( - 'sh -c "echo A | telnet -e A %s 5001"' % server.IP()): + 'sh -c "echo A | telnet -e A %s 5001"' % server.IP()): output('waiting for iperf to start up...') sleep(.5) cliout = client.cmd( iperfArgs + '-t 5 -c ' + server.IP() + ' ' + @@ -617,7 +617,7 @@ class MininetWithControlNet( Mininet ): # in the control network location. def configureRoutedControlNetwork( self, ip='192.168.123.1', - prefixLen=16 ): + prefixLen=16 ): """Configure a routed control network on controller and switches. For use with the user datapath only right now.""" controller = self.controllers[ 0 ]