mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-09-19 18:09:21 +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 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"
|
||||
|
Reference in New Issue
Block a user