pep8: Fix E125 continuation line does not distinguish itself from next logical line
This commit is contained in:
@@ -170,10 +170,10 @@ class Graph( Frame ):
|
|||||||
"Graph that we can add bars to over time."
|
"Graph that we can add bars to over time."
|
||||||
|
|
||||||
def __init__( self, parent=None,
|
def __init__( self, parent=None,
|
||||||
bg = 'white',
|
bg = 'white',
|
||||||
gheight=200, gwidth=500,
|
gheight=200, gwidth=500,
|
||||||
barwidth=10,
|
barwidth=10,
|
||||||
ymax=3.5,):
|
ymax=3.5,):
|
||||||
|
|
||||||
Frame.__init__( self, parent )
|
Frame.__init__( self, parent )
|
||||||
|
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ class MiniEdit( Frame ):
|
|||||||
target = self.findItem( x, y )
|
target = self.findItem( x, y )
|
||||||
dest = self.itemToWidget.get( target, None )
|
dest = self.itemToWidget.get( target, None )
|
||||||
if ( source is None or dest is None or source == dest
|
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 )
|
self.releaseLink( event )
|
||||||
return
|
return
|
||||||
# For now, don't allow hosts to be directly linked
|
# For now, don't allow hosts to be directly linked
|
||||||
|
|||||||
+2
-2
@@ -515,7 +515,7 @@ class Mininet( object ):
|
|||||||
servout += server.monitor()
|
servout += server.monitor()
|
||||||
if l4Type == 'TCP':
|
if l4Type == 'TCP':
|
||||||
while 'Connected' not in client.cmd(
|
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...')
|
output('waiting for iperf to start up...')
|
||||||
sleep(.5)
|
sleep(.5)
|
||||||
cliout = client.cmd( iperfArgs + '-t 5 -c ' + server.IP() + ' ' +
|
cliout = client.cmd( iperfArgs + '-t 5 -c ' + server.IP() + ' ' +
|
||||||
@@ -617,7 +617,7 @@ class MininetWithControlNet( Mininet ):
|
|||||||
# in the control network location.
|
# in the control network location.
|
||||||
|
|
||||||
def configureRoutedControlNetwork( self, ip='192.168.123.1',
|
def configureRoutedControlNetwork( self, ip='192.168.123.1',
|
||||||
prefixLen=16 ):
|
prefixLen=16 ):
|
||||||
"""Configure a routed control network on controller and switches.
|
"""Configure a routed control network on controller and switches.
|
||||||
For use with the user datapath only right now."""
|
For use with the user datapath only right now."""
|
||||||
controller = self.controllers[ 0 ]
|
controller = self.controllers[ 0 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user