forked from pool/python-acitoolkit
Accepting request 949652 from home:pgajdos:python
- fix for python 3.10
- added patches
fix 629b84887d
+ python-acitoolkit-python-310.patch
OBS-URL: https://build.opensuse.org/request/show/949652
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acitoolkit?expand=0&rev=12
This commit is contained in:
20
python-acitoolkit-python-310.patch
Normal file
20
python-acitoolkit-python-310.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff --git a/acitoolkit/acitoolkit.py b/acitoolkit/acitoolkit.py
|
||||
index 3c4b0f61..495bf690 100755
|
||||
--- a/acitoolkit/acitoolkit.py
|
||||
+++ b/acitoolkit/acitoolkit.py
|
||||
@@ -30,7 +30,13 @@
|
||||
""" Main ACI Toolkit module
|
||||
This is the main module that comprises the ACI Toolkit.
|
||||
"""
|
||||
-from collections import Sequence
|
||||
+try:
|
||||
+ # Python <=3.9
|
||||
+ from collections import Sequence
|
||||
+except ImportError:
|
||||
+ # Python > 3.8
|
||||
+ from collections.abc import Sequence
|
||||
+
|
||||
import logging
|
||||
from operator import attrgetter, itemgetter
|
||||
import re
|
||||
|
||||
Reference in New Issue
Block a user