diff --git a/mcpipy/mcpi/util.py b/mcpipy/mcpi/util.py index 9b9386f..1c4dea0 100644 --- a/mcpipy/mcpi/util.py +++ b/mcpipy/mcpi/util.py @@ -9,7 +9,7 @@ def flatten(l): for e in l: - if isinstance(e, collections.Iterable) and not isinstance(e, basestring): + if isinstance(e, collections.abc.Iterable) and not isinstance(e, basestring): for ee in flatten(e): yield ee else: yield e diff --git a/mcpipy/mcpi/vec3.py b/mcpipy/mcpi/vec3.py index 325ac49..46fac69 100644 --- a/mcpipy/mcpi/vec3.py +++ b/mcpipy/mcpi/vec3.py @@ -2,7 +2,7 @@ class Vec3: def __init__(self, x=0, y=0, z=0): - if isinstance(x, collections.Iterable): + if isinstance(x, collections.abc.Iterable): self.x, self.y, self.z = tuple(x) else: self.x = x