From 615ebb7afa0f2892e3f59eba7da12d14dd9603d0 Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Tue, 13 Nov 2012 14:56:49 -0800 Subject: [PATCH] pep8: Fix E125 continuation line does not distinguish itself from next logical line --- examples/consoles.py | 8 ++++---- examples/miniedit.py | 2 +- mininet/net.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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 ]