Add Python 3.10 compat

Python 3.10 changes the location of Sequence into "collections.abc"
This commit is contained in:
Noah 2022-11-19 16:34:07 -08:00 committed by GitHub
parent a3b0c85b5b
commit 5befbd5441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,12 @@ import time
import signal
import logging
import argparse
from collections import Sequence
#Since Python 3.10: Sequence is located on "collections.abc" instead of "collections"
if (sys.version_info >= (3,10)):
from collections.abc import Sequence
else:
from collections import Sequence
__version__ = "0.1"
__license__ = "MIT License"