add cached_property fallback for python < 3.8 compatability
[utils.git] / src / budget_sync / test / mock_path.py
index 33a71310832ae12cc013eeac494b96514fc45937..3fbe7ccb48abf93f0e002603b4d35bc31e5a40d3 100644 (file)
@@ -4,7 +4,11 @@ from os import PathLike
 from posixpath import normpath
 from enum import Enum
 import errno
-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 MockDir(Enum):