diff -Nru python-os-win-5.5.0/debian/changelog python-os-win-5.5.0/debian/changelog --- python-os-win-5.5.0/debian/changelog 2021-09-07 15:38:55.000000000 -0300 +++ python-os-win-5.5.0/debian/changelog 2022-03-25 15:17:49.000000000 -0300 @@ -1,3 +1,10 @@ +python-os-win (5.5.0-0ubuntu2) jammy; urgency=medium + + * d/p/lp1966442.patch: drop collections.Iterable in favor + collections.abc.Iterable (LP: #1966442). + + -- Felipe Reyes Fri, 25 Mar 2022 15:17:49 -0300 + python-os-win (5.5.0-0ubuntu1) impish; urgency=medium * New upstream release for OpenStack Xena. diff -Nru python-os-win-5.5.0/debian/patches/lp1966442.patch python-os-win-5.5.0/debian/patches/lp1966442.patch --- python-os-win-5.5.0/debian/patches/lp1966442.patch 1969-12-31 21:00:00.000000000 -0300 +++ python-os-win-5.5.0/debian/patches/lp1966442.patch 2022-03-25 15:17:04.000000000 -0300 @@ -0,0 +1,43 @@ +From c672101e6039ce8a10a834ae36779f49ecd01b30 Mon Sep 17 00:00:00 2001 +From: Felipe Reyes +Date: Fri, 25 Mar 2022 10:04:05 -0300 +Subject: [PATCH] Drop collections.Iterable in favor of + collections.abc.Iterable + +Python3 has deprecated (and recently dropped) collections.Iterable in +favor of using the collections.abc module. This change fixes the import. + +Closes-Bug: #1966442 +Change-Id: I76ed972890a2fe0bedebd0364276590d5aa90f29 +--- + os_win/utils/storage/diskutils.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +Index: python-os-win-5.5.0/os_win/utils/storage/diskutils.py +=================================================================== +--- python-os-win-5.5.0.orig/os_win/utils/storage/diskutils.py ++++ python-os-win-5.5.0/os_win/utils/storage/diskutils.py +@@ -13,12 +13,13 @@ + # License for the specific language governing permissions and limitations + # under the License. + +-import collections + import ctypes + import os + import re + import threading + ++from collections.abc import Iterable ++ + from oslo_log import log as logging + + from os_win._i18n import _ +@@ -200,7 +201,7 @@ class DiskUtils(baseutils.BaseUtils): + + ret = self._conn_storage.Msft_StorageSetting.UpdateHostStorageCache() + +- if isinstance(ret, collections.Iterable): ++ if isinstance(ret, Iterable): + ret = ret[0] + + if ret: diff -Nru python-os-win-5.5.0/debian/patches/series python-os-win-5.5.0/debian/patches/series --- python-os-win-5.5.0/debian/patches/series 1969-12-31 21:00:00.000000000 -0300 +++ python-os-win-5.5.0/debian/patches/series 2022-03-25 15:16:51.000000000 -0300 @@ -0,0 +1 @@ +lp1966442.patch