From 0c168144fd90fcbf5d408b995b826f39bf8bf121 Mon Sep 17 00:00:00 2001 From: Jay Shepherd Date: Fri, 8 Oct 2021 22:53:14 -0400 Subject: [PATCH] Fix deprecation warning for collections --- flask_nav/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {}