From: Lukas Juhrich Date: Sun, 8 Aug 2021 16:24:42 +0000 (+0200) Subject: Import from collections.abc, not collections X-Git-Tag: v3.1.0~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=901805f1c0a0a4785db0abba7ff770fb97e095a2;p=thirdparty%2Fpython-fints.git 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. --- 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