From 0c7507b69ccaec455ff2ba0ae350728f95b43fc2 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 12 Mar 2022 16:45:21 +0100 Subject: [PATCH] Fix python 3.10 support in vendored in cgroupspy The cgrouppspy is not Python 3.10 compliant due to Iterable being imported directly from collections. This is captured in https://github.com/cloudsigma/cgroupspy/issues/13 We fix it in our vendored-in version of cgroupspy until hopefully new version of it is released. This is part of the effort needed to implement Python 3.10 compatibility: #22050 --- airflow/_vendor/cgroupspy/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/_vendor/cgroupspy/interfaces.py b/airflow/_vendor/cgroupspy/interfaces.py index 331c4b5d5813f..85468cca8a55d 100644 --- a/airflow/_vendor/cgroupspy/interfaces.py +++ b/airflow/_vendor/cgroupspy/interfaces.py @@ -24,7 +24,7 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ -from collections import Iterable +from collections.abc import Iterable from airflow._vendor.cgroupspy.contenttypes import BaseContentType