From 7022ba06ef67048b3851c68320948b6e69f34dc1 Mon Sep 17 00:00:00 2001 From: George Houpis Date: Mon, 4 Dec 2023 22:21:34 -0600 Subject: [PATCH] Change to support python 3.10 --- pyswagger/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyswagger/io.py b/pyswagger/io.py index 75569c2..65e424e 100644 --- a/pyswagger/io.py +++ b/pyswagger/io.py @@ -388,7 +388,7 @@ def apply_with(self, status=None, raw=None, header=None): final(self.__op.responses.get('default', None))) if header != None: - if isinstance(header, (collections.Mapping, collections.MutableMapping)): + if isinstance(header, (collections.abc.Mapping, collections.abc.MutableMapping)): for k, v in six.iteritems(header): self._convert_header(r, k, v) else: