From 68c89df8a155a37d60b1aff83ebae87d267f2716 Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Mon, 16 Aug 2010 19:35:49 -0700 Subject: [PATCH] Pass make codecheck. --- mininet/cli.py | 1 - mininet/topo.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mininet/cli.py b/mininet/cli.py index fa8a50ba..b9dbc3f8 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -293,7 +293,6 @@ def default( self, line ): self.waitForNode( node ) else: error( '*** Unknown command: %s\n' % first ) - # pylint: enable-msg=W0613,R0201 diff --git a/mininet/topo.py b/mininet/topo.py index 9547fa12..07f74efa 100644 --- a/mininet/topo.py +++ b/mininet/topo.py @@ -132,12 +132,12 @@ def add_port(self, src, dst): if src not in self.ports: self.ports[src] = {} if dst not in self.ports[src]: - # num outlinks + # num outlinks self.ports[src][dst] = len(self.ports[src]) + src_base if dst not in self.ports: self.ports[dst] = {} if src not in self.ports[dst]: - # num outlinks + # num outlinks self.ports[dst][src] = len(self.ports[dst]) + dst_base def node_enabled(self, dpid): @@ -185,7 +185,6 @@ def is_switch(self, n): '''Returns true if node is a switch.''' return self.node_info[n].is_switch - def switches(self, enabled = True): '''Return switches. -- GitLab