gentoo/dev-python/flask-nav/files/flask-nav-0.6-py310.patch
Louis Sautier 673a5cb3b8
dev-python/flask-nav: make Python 3.10 really work
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
2021-08-07 01:52:39 +02:00

20 lines
487 B
Diff

diff --git a/flask_nav/__init__.py b/flask_nav/__init__.py
index 7c25dfa..5826b9e 100644
--- a/flask_nav/__init__.py
+++ b/flask_nav/__init__.py
@@ -1,4 +1,4 @@
-import collections
+import collections.abc
from importlib import import_module
import re
@@ -46,7 +46,7 @@ class NavbarRenderingError(Exception):
pass
-class ElementRegistry(collections.MutableMapping):
+class ElementRegistry(collections.abc.MutableMapping):
def __init__(self):
self._elems = {}