blob: 7efe8998b35f782a5097882011df395b052192a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
From 0cb12b33df48788c10fa21b326803ae66d74cbe6 Mon Sep 17 00:00:00 2001
From: Jarrod Millman <jarrod.millman@gmail.com>
Date: Mon, 21 Oct 2019 00:56:04 -0700
Subject: [PATCH] Remove unused imports
---
.travis.yml | 3 ---
networkx/algorithms/assortativity/connectivity.py | 2 --
networkx/algorithms/assortativity/correlation.py | 13 ++++++-------
networkx/algorithms/assortativity/mixing.py | 1 -
.../algorithms/assortativity/neighbor_degree.py | 1 -
networkx/algorithms/assortativity/pairs.py | 1 -
networkx/algorithms/cluster.py | 1 -
networkx/algorithms/community/modularity_max.py | 1 -
networkx/algorithms/components/biconnected.py | 1 -
networkx/algorithms/isolate.py | 1 -
networkx/algorithms/isomorphism/isomorphvf2.py | 1 -
networkx/algorithms/traversal/beamsearch.py | 1 -
networkx/classes/graph.py | 2 +-
networkx/classes/reportviews.py | 1 -
networkx/conftest.py | 8 ++++++--
networkx/linalg/attrmatrix.py | 1 -
networkx/readwrite/gexf.py | 11 ++---------
networkx/readwrite/gpickle.py | 1 -
networkx/readwrite/graphml.py | 11 ++---------
networkx/readwrite/nx_yaml.py | 1 -
networkx/readwrite/tests/test_graphml.py | 4 ++--
tools/travis/script.sh | 2 +-
22 files changed, 20 insertions(+), 49 deletions(-)
diff --git a/networkx/readwrite/tests/test_graphml.py b/networkx/readwrite/tests/test_graphml.py
index 00b97d77..1946c487 100644
--- a/networkx/readwrite/tests/test_graphml.py
+++ b/networkx/readwrite/tests/test_graphml.py
@@ -879,7 +879,7 @@ class TestWriteGraphML(BaseGraphML):
xml = parse(fh)
# Children are the key elements, and the graph element
- children = xml.getroot().getchildren()
+ children = list(xml.getroot())
assert len(children) == 3
keys = [child.items() for child in children[:2]]
--
2.27.0
|