From 01f87bd482a4a7cddab6270e3bdf5e9cb5481a20 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Fri, 18 Mar 2022 04:32:22 +0000 Subject: [PATCH] Fix import with newer versions of Python3. --- bemani/backend/bishi/bishi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bemani/backend/bishi/bishi.py b/bemani/backend/bishi/bishi.py index d04ed6c..882136b 100644 --- a/bemani/backend/bishi/bishi.py +++ b/bemani/backend/bishi/bishi.py @@ -1,7 +1,12 @@ # vim: set fileencoding=utf-8 import binascii import base64 -from collections import Iterable +try: + # Python <= 3.9 + from collections import Iterable +except ImportError: + # Python > 3.9 + from collections.abc import Iterable from typing import Any, Dict, List, Sequence, Union from bemani.backend.bishi.base import BishiBashiBase