summaryrefslogtreecommitdiff
path: root/compose/config
diff options
context:
space:
mode:
authorAnca Iordache <aiordache@users.noreply.github.com>2021-03-18 20:17:49 +0100
committerGitHub <noreply@github.com>2021-03-18 20:17:49 +0100
commit981b0cd6410423efcee941d62ebb5a255031c265 (patch)
tree35f0a1c8b3409537e7f1ec92971dfd6396ccbfbe /compose/config
parentf5342b600c0c4bb8915f238212e66e57466b6bda (diff)
parent2a7c06a050727b6dfe4d12f01a738a9926a22da3 (diff)
Merge pull request #8178 from mgorny/cached-prop-dep
Use built-in functools.cached_property when possible
Diffstat (limited to 'compose/config')
-rw-r--r--compose/config/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/compose/config/config.py b/compose/config/config.py
index 3fec4019..c2f5e95a 100644
--- a/compose/config/config.py
+++ b/compose/config/config.py
@@ -10,7 +10,11 @@ from operator import attrgetter
from operator import itemgetter
import yaml
-from cached_property import cached_property
+
+try:
+ from functools import cached_property
+except ImportError:
+ from cached_property import cached_property
from . import types
from ..const import COMPOSE_SPEC as VERSION