1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

fix for python 3.10+ compatibility

This commit is contained in:
Kelly Brazil
2022-12-30 10:37:12 -08:00
parent b1358a7eca
commit 5e32a6d828

View File

@ -28,7 +28,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
import sys
from functools import cmp_to_key
# for python 3.10+ compatibility
if sys.version_info.major == 3 and sys.version_info.minor >= 10:
import collections
setattr(collections, "MutableMapping", collections.abc.MutableMapping)
import collections
from . import pbItem