from budget_sync.util import BugStatus, PrettyPrinter
from budget_sync.money import Money
from budget_sync.config import Config, Person, Milestone
-from functools import cached_property
import toml
import sys
import enum
from collections import deque
from datetime import date, time, datetime
+try:
+ from functools import cached_property
+except ImportError:
+ # compatability with python < 3.8
+ from cached_property import cached_property
class BudgetGraphBaseError(Exception):
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):
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):