Skip to content

Commit

Permalink
fix kwargs names so they wont spark a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
None authored and None committed Jan 17, 2019
1 parent fdc3156 commit 1888001
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/controlnet.py
Expand Up @@ -100,7 +100,7 @@ def items( self ):

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
Expand Down
2 changes: 1 addition & 1 deletion examples/multilink.py
Expand Up @@ -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' )

Expand Down
2 changes: 1 addition & 1 deletion examples/natnet.py
Expand Up @@ -27,7 +27,7 @@

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
Expand Down

0 comments on commit 1888001

Please sign in to comment.