From e77123cf0eae9c2c0f8940aa4be17f30d9b59c44 Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Mon, 3 Nov 2014 14:25:09 -0800 Subject: [PATCH] Remove unnecessary 0 --- mininet/topo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/topo.py b/mininet/topo.py index 1331306a..af3eac5f 100644 --- a/mininet/topo.py +++ b/mininet/topo.py @@ -207,7 +207,7 @@ def links( self, sort=False, withKeys=False, withInfo=False ): return links # Ignore info when sorting tupleSize = 3 if withKeys else 2 - return sorted( links, key=( lambda l: naturalSeq( l[ 0 : tupleSize ] ) ) ) + return sorted( links, key=( lambda l: naturalSeq( l[ :tupleSize ] ) ) ) # This legacy port management mechanism is clunky and will probably # be removed at some point. -- GitLab