add cached_property fallback for python < 3.8 compatability
[utils.git] / src / budget_sync / config.py
index af7db98f4694a959dc88e742b0fe4a27e8b0d322..5c9973da65cc05d7b11a83a779cd6bbb0fe4101f 100644 (file)
@@ -3,7 +3,11 @@ from budget_sync.util import PrettyPrinter
 import toml
 import sys
 from typing import Mapping, Set, Dict, Any, Optional
-from functools import cached_property
+try:
+    from functools import cached_property
+except ImportError:
+    # compatability with python < 3.8
+    from cached_property import cached_property
 
 
 class ConfigParseError(Exception):