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:
Brandon Heller
2012-11-13 17:17:51 -08:00
parent edf6003217
commit 2e089b5e4a
6 changed files with 15 additions and 15 deletions
+4 -4
View File
@@ -246,11 +246,11 @@ class TCIntf( Intf ):
'%s ' % jitter if jitter is not None else '',
'loss %d ' % loss if loss is not None else '',
'limit %d' % max_queue_size if max_queue_size is not None
else '' )
else '' )
if netemargs:
cmds = [ '%s qdisc add dev %s ' + parent +
' handle 10: netem ' +
netemargs ]
netemargs ]
return cmds
def tc( self, cmd, tc='tc' ):
@@ -290,8 +290,8 @@ class TCIntf( Intf ):
# Delay/jitter/loss/max_queue_size using netem
cmds += self.delayCmds( delay=delay, jitter=jitter, loss=loss,
max_queue_size=max_queue_size,
parent=parent )
max_queue_size=max_queue_size,
parent=parent )
# Ugly but functional: display configuration info
stuff = ( ( [ '%.2fMbit' % bw ] if bw is not None else [] ) +