diff --git a/funkwhale_cli/utils.py b/funkwhale_cli/utils.py
index a5d195eb3d9d50382e67693873984cdda4880317..9fda4d3215e88874adc02503579a6d7a0840cd89 100644
--- a/funkwhale_cli/utils.py
+++ b/funkwhale_cli/utils.py
@@ -1,13 +1,9 @@
+import collections
 import json
 import urllib.parse
 
 import pathvalidate
 
-try:
-    from collections.abc import MutableMapping
-except ImportError:
-    # python<3.10 compatibility
-    from collections import MutableMapping
 
 def recursive_getattr(obj, key, permissive=False):
     """
@@ -96,7 +92,7 @@ def flatten(d, parent_key="", sep="_"):
     items = []
     for k, v in d.items():
         new_key = parent_key + sep + k if parent_key else k
-        if isinstance(v, MutableMapping):
+        if isinstance(v, collections.MutableMapping):
             items.extend(flatten(v, new_key, sep=sep).items())
         else:
             items.append((new_key, v))