mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-09-20 02:19:20 +08:00
Add Python 3.10 compat
Python 3.10 changes the location of Sequence into "collections.abc"
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user