mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-22 08:15:38 +01:00
Add Python 3.10 compat
Python 3.10 changes the location of Sequence into "collections.abc"
This commit is contained in:
parent
a3b0c85b5b
commit
5befbd5441
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user