From 85c0e59c89a9e1bc71d82727b6d02678b54c6758 Mon Sep 17 00:00:00 2001 From: Ilya Figotin Date: Fri, 2 Apr 2021 08:19:17 -0700 Subject: [PATCH] Reverse the attempted Mapping import Currently the attempt `from collections import Mapping` cause the following warning: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working --- src/keycloak/well_known.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keycloak/well_known.py b/src/keycloak/well_known.py index 47224f1..83ea2d7 100644 --- a/src/keycloak/well_known.py +++ b/src/keycloak/well_known.py @@ -1,7 +1,7 @@ try: - from collections import Mapping -except ImportError: from collections.abc import Mapping +except ImportError: + from collections import Mapping class KeycloakWellKnown(Mapping):