From 8a176b5f704b201a10d3cefe6a48ee5eca0be32d Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Fri, 20 Oct 2023 20:15:55 +0200 Subject: [PATCH] chore(py3): remove outdated compatibility imports --- exhale/graph.py | 6 +----- testing/utils.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/exhale/graph.py b/exhale/graph.py index ff62e04..f6e59da 100644 --- a/exhale/graph.py +++ b/exhale/graph.py @@ -4038,11 +4038,7 @@ class view hierarchy. It will be present in the file page it was declared in - Directories - Files ''' - try: - from collections.abc import MutableMapping - except ImportError: - # TODO: remove when dropping python 2.7 - from collections import MutableMapping + from collections.abc import MutableMapping class UnabridgedDict(MutableMapping): def __init__(self): self.items = {} diff --git a/testing/utils.py b/testing/utils.py index 071b1ae..2765936 100644 --- a/testing/utils.py +++ b/testing/utils.py @@ -10,11 +10,7 @@ """ from __future__ import unicode_literals -try: - from collections.abc import Mapping -except ImportError: - # TODO: remove when dropping python 2.7 - from collections import Mapping +from collections.abc import Mapping def deep_update(orig, override):