mirror of https://github.com/SystemRage/py-kms.git
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,6 +9,11 @@ import time
|
|||
import signal
|
||||
import logging
|
||||
import argparse
|
||||
|
||||
#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"
|
||||
|
|
Loading…
Reference in New Issue