Commit dfa0fa1d authored by Alex Henrie's avatar Alex Henrie

Use collections.abc.Iterable instead of collections.Iterable

parent 3c47097d
Pipeline #603 failed with stage
in 0 seconds
......@@ -129,7 +129,7 @@ import weakref
import copy
import textwrap
import io
import collections
import collections.abc
import itertools
import csv
......@@ -2356,7 +2356,7 @@ class Graph(object):
"""
back = self.__graph.get_num_vertices(False) - 1
is_iter = isinstance(vertex, collections.Iterable)
is_iter = isinstance(vertex, collections.abc.Iterable)
if is_iter:
try:
vs = numpy.asarray(vertex, dtype="int64")
......@@ -3496,7 +3496,7 @@ class GraphView(Graph):
if efilt is not None:
if not isinstance(efilt, PropertyMap):
emap = self.new_edge_property("bool")
if isinstance(efilt, collections.Iterable):
if isinstance(efilt, collections.abc.Iterable):
emap.fa = efilt
else:
for e in g.edges():
......@@ -3516,7 +3516,7 @@ class GraphView(Graph):
if vfilt is not None:
if not isinstance(vfilt, PropertyMap):
vmap = self.new_vertex_property("bool")
if isinstance(vfilt, collections.Iterable):
if isinstance(vfilt, collections.abc.Iterable):
vmap.fa = vfilt
else:
for v in g.vertices():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment