]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
FIx tests on older python (#175)
authorRaphael Michel <michel@rami.io>
Sat, 26 Oct 2024 14:29:01 +0000 (16:29 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Oct 2024 14:29:01 +0000 (16:29 +0200)
fints/utils.py

index b787283103c86f76e8f0e3e475765d313a98e570..c071c1e14efb43d7751422ae3a1c4c6f23c98cb9 100644 (file)
@@ -5,7 +5,10 @@ import threading
 import zlib
 from contextlib import contextmanager
 from datetime import datetime
-from enum import Enum, EnumType
+try:
+    from enum import Enum, EnumType
+except ImportError:
+    from enum import Enum, EnumMeta as EnumType
 
 import mt940