pep8: Fix E127 continuation line over-indented
There are a bunch of these remaining, but I don't think the right course is to 'fix' all of them to make pep8 happy, but instead to either change the test in pep8 to consider that a continuation line may itself be continued halfway, OR, to change the code in these lines to be more readable by removing the need for all those nested continuations. Personally, I find multiply-broken lines (aka nested continuations) really hard to read.
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ class Topo(object):
|
||||
return result
|
||||
|
||||
def addLink(self, node1, node2, port1=None, port2=None,
|
||||
**opts):
|
||||
**opts):
|
||||
"""node1, node2: nodes to link together
|
||||
port1, port2: ports (optional)
|
||||
opts: link options (optional)
|
||||
@@ -205,7 +205,7 @@ class SingleSwitchReversedTopo(Topo):
|
||||
for h in irange(1, k):
|
||||
host = self.addHost('h%s' % h)
|
||||
self.addLink(host, switch,
|
||||
port1=0, port2=(k - h + 1))
|
||||
port1=0, port2=(k - h + 1))
|
||||
|
||||
class LinearTopo(Topo):
|
||||
"Linear topology of k switches, with one host per switch."
|
||||
|
||||
Reference in New Issue
Block a user