From 901805f1c0a0a4785db0abba7ff770fb97e095a2 Mon Sep 17 00:00:00 2001 From: Lukas Juhrich Date: Sun, 8 Aug 2021 18:24:42 +0200 Subject: [PATCH] Import from collections.abc, not collections This is possible since py3.3 and has been deprecated for a while. In py3.10 (set to release in september), the old option will not work anymore. --- fints/parser.py | 2 +- fints/types.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fints/parser.py b/fints/parser.py index ff0238e..6d5e29b 100644 --- a/fints/parser.py +++ b/fints/parser.py @@ -1,6 +1,6 @@ import re import warnings -from collections import Iterable +from collections.abc import Iterable from enum import Enum from .formals import ( diff --git a/fints/types.py b/fints/types.py index 8adca2d..aa75a54 100644 --- a/fints/types.py +++ b/fints/types.py @@ -1,4 +1,5 @@ -from collections import Iterable, OrderedDict +from collections import OrderedDict +from collections.abc import Iterable from contextlib import suppress from .exceptions import FinTSNoResponseError -- 2.39.5