From 1888001555ed6a91213ee71ff9802406db267438 Mon Sep 17 00:00:00 2001 From: None Date: Thu, 17 Jan 2019 13:06:53 -0800 Subject: [PATCH] fix kwargs names so they wont spark a warning --- examples/controlnet.py | 2 +- examples/multilink.py | 2 +- examples/natnet.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/controlnet.py b/examples/controlnet.py index 68fd3d9..53fce35 100755 --- a/examples/controlnet.py +++ b/examples/controlnet.py @@ -100,7 +100,7 @@ class MininetFacade( object ): class ControlNetwork( Topo ): "Control Network Topology" - def build( self, n, dataController=DataController, **kwargs ): + def build( self, n, dataController=DataController, **_kwargs ): """n: number of data network controller nodes dataController: class for data network controllers""" # Connect everything to a single switch diff --git a/examples/multilink.py b/examples/multilink.py index eb9318d..6cde4dc 100755 --- a/examples/multilink.py +++ b/examples/multilink.py @@ -21,7 +21,7 @@ def runMultiLink(): class simpleMultiLinkTopo( Topo ): "Simple topology with multiple links" - def build( self, n, **kwargs ): + def build( self, n, **_kwargs ): h1, h2 = self.addHost( 'h1' ), self.addHost( 'h2' ) s1 = self.addSwitch( 's1' ) diff --git a/examples/natnet.py b/examples/natnet.py index da7d54f..59ba6c7 100755 --- a/examples/natnet.py +++ b/examples/natnet.py @@ -27,7 +27,7 @@ from mininet.util import irange class InternetTopo(Topo): "Single switch connected to n hosts." - def build(self, n=2, **opts): + def build(self, n=2, **_kwargs ): # set up inet switch inetSwitch = self.addSwitch('s0') # add inet host