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,7 +9,12 @@ import time
|
||||||
import signal
|
import signal
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
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"
|
__version__ = "0.1"
|
||||||
__license__ = "MIT License"
|
__license__ = "MIT License"
|
||||||
|
|
Loading…
Reference in New Issue