Skip to content

Commit

Permalink
Merge pull request #3 from aemichael/master
Browse files Browse the repository at this point in the history
Changed deprecated collections.Iterable to collections.abc.Iterable
  • Loading branch information
dkohlbre authored Jan 13, 2023
2 parents cc6f2b6 + 86f4699 commit 2231fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, func, harness, args, deps=None, setup=""):


def vectorver(thing):
if isinstance(thing, collections.Iterable) and type(thing) is not str:
if isinstance(thing, collections.abc.Iterable) and type(thing) is not str:
if len(thing) == 1 and thing[0] is None:
return []
return thing
Expand Down Expand Up @@ -178,7 +178,7 @@ def add_c_test(self, cfunc, typestring, args,
libfiles=None, includefiles=None, setup=None):

# Vectorization is comfy and easy to wear
if isinstance(cfunc, collections.Iterable) and type(cfunc) is not str:
if isinstance(cfunc, collections.abc.Iterable) and type(cfunc) is not str:
[self.add_c_test(c, typestring, args,
libfiles, includefiles, setup)
for c in cfunc]
Expand Down

0 comments on commit 2231fdd

Please sign in to comment.