diff --git a/MyAdventures/mcpi/util.py b/MyAdventures/mcpi/util.py index 9791072..8f8613f 100644 --- a/MyAdventures/mcpi/util.py +++ b/MyAdventures/mcpi/util.py @@ -2,7 +2,7 @@ def flatten(l): for e in l: - if isinstance(e, collections.Iterable) and not isinstance(e, str): + if isinstance(e, collections.abc.Iterable) and not isinstance(e, str): for ee in flatten(e): yield ee else: yield e