Skip to content

Commit dc7554f

Browse files
authored
fix(service): fixes core service not working with python 3.10 (#3186)
1 parent f62f55d commit dc7554f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renku/ui/service/utils/squash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
"""Utilities for renku service controllers."""
19-
import collections
19+
import collections.abc
2020

2121

2222
def squash(data, parent_key="", sep="."):
@@ -28,7 +28,7 @@ def squash(data, parent_key="", sep="."):
2828
k = k[1:]
2929

3030
new_key = parent_key + sep + k if parent_key else k
31-
if isinstance(v, collections.MutableMapping):
31+
if isinstance(v, collections.abc.MutableMapping):
3232
items.extend(squash(v, new_key, sep=sep).items())
3333
else:
3434
items.append((new_key, v))

0 commit comments

Comments
 (0)