From c458c9e2b495ef86b8203725ca5eeda4bb952781 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 13 Mar 2017 18:56:21 -0700 Subject: [PATCH] code check --- examples/simpleperf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/simpleperf.py b/examples/simpleperf.py index 7ea269c..0124d79 100755 --- a/examples/simpleperf.py +++ b/examples/simpleperf.py @@ -19,9 +19,12 @@ from mininet.log import setLogLevel, info from sys import argv -class SingleSwitchTopo(Topo): +# It would be nice if we didn't have to do this: +# pylint: disable=arguments-differ + +class SingleSwitchTopo( Topo ): "Single switch connected to n hosts." - def build(self, n=2, lossy=True ): + def build( self, n=2, lossy=True ): switch = self.addSwitch('s1') for h in range(n): # Each host gets 50%/n of system CPU