From 9a6de1cb59611ce1bdc37048c87cdaf7b969cf8f Mon Sep 17 00:00:00 2001 From: Fatemeh Ahmadi <38241703+FatemehAhmadi94@users.noreply.github.com> Date: Sat, 22 Oct 2022 18:46:02 +0200 Subject: [PATCH] Fixed issue #195, Compatibility with Python 3.10 --- messytables/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/messytables/core.py b/messytables/core.py index 28ad7eb..d40f1c7 100644 --- a/messytables/core.py +++ b/messytables/core.py @@ -1,5 +1,8 @@ from messytables.util import OrderedDict -from collections import Mapping +try: + from collections.abc import Mapping +except ImportError: + from collections import Mapping from messytables.error import TableError, NoSuchPropertyError import io from messytables.compat23 import *