- Add -doc patch to fix building the gallery of examples. - Add -is patch to reduce noise in sagemath. - Add upstream bug fix patches: -source-target, -union-find, -cb-iterable, -iterable, and -dict-iteration.
18 lines
672 B
Diff
18 lines
672 B
Diff
https://github.com/networkx/networkx/commit/52e7b5d8732c84512f5423661f234790ce7b1b5f
|
|
Fix dict iteration for Py3.8
|
|
|
|
Python 3.8 tracks if any key names change while iterating.
|
|
https://github.com/python/cpython/pull/12596
|
|
|
|
--- networkx/classes/reportviews.py.orig 2019-04-11 14:52:34.000000000 -0600
|
|
+++ networkx/classes/reportviews.py 2019-09-11 09:36:56.783002687 -0600
|
|
@@ -1025,7 +1025,7 @@ class EdgeView(OutEdgeView):
|
|
def __iter__(self):
|
|
seen = {}
|
|
for n, nbrs in self._nodes_nbrs():
|
|
- for nbr in nbrs:
|
|
+ for nbr in list(nbrs):
|
|
if nbr not in seen:
|
|
yield (n, nbr)
|
|
seen[n] = 1
|