From c858b993160e712c7f4d20a9636a683ec069ed81 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Mon, 20 Nov 2023 23:24:39 +0100 Subject: [PATCH] remove compat code which is only required for ancient Python versions (#104) This library requires Python 3.6+ anyway so we can just drop the old compatibility code. --- dotmap/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dotmap/__init__.py b/dotmap/__init__.py index 671b003..25da0b0 100755 --- a/dotmap/__init__.py +++ b/dotmap/__init__.py @@ -1,9 +1,6 @@ -from __future__ import print_function + from collections import OrderedDict -try: - from collections.abc import MutableMapping, Iterable -except ImportError: - from collections import MutableMapping, Iterable +from collections.abc import MutableMapping, Iterable from json import dumps from pprint import pprint from sys import version_info