summaryrefslogtreecommitdiff
path: root/networkx/testing
diff options
context:
space:
mode:
authorjfinkels <jfinkels@users.noreply.github.com>2015-03-22 18:39:30 -0400
committerjfinkels <jfinkels@users.noreply.github.com>2015-03-22 18:39:30 -0400
commit069811a72758adcd934059f00fb60083bfbc2908 (patch)
tree42e02f95381695201aea93ac2439db308de7900d /networkx/testing
parent8238a9ce63dbb326de4b6252779fd5c7e18100bb (diff)
downloadnetworkx-069811a72758adcd934059f00fb60083bfbc2908.tar.gz
Removes unused variable
Before, providing an empty list to `assert_nodes_equal` caused an error. By removing this line, the function now correctly returns ``True`` if provided with an empty input list.
Diffstat (limited to 'networkx/testing')
-rw-r--r--networkx/testing/utils.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/networkx/testing/utils.py b/networkx/testing/utils.py
index bac76eec..4ce21f2e 100644
--- a/networkx/testing/utils.py
+++ b/networkx/testing/utils.py
@@ -6,7 +6,6 @@ def assert_nodes_equal(nlist1, nlist2):
# Assumes lists are either nodes, or (node,datadict) tuples,
# and also that nodes are orderable/sortable.
try:
- l = len(nlist1[0])
n1 = sorted(nlist1,key=operator.itemgetter(0))
n2 = sorted(nlist2,key=operator.itemgetter(0))
assert_equal(len(n1),len(n2))