1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

[docker_] Fake functools.cached_property for Python<3.8

Fixes: #1116
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2020-09-03 22:45:41 +10:00 committed by Lars Kruse
parent 3226446348
commit 254eb56dde

View file

@ -77,7 +77,13 @@ This section has been reverse-engineered from git logs
import os
import sys
import re
from functools import cached_property
try:
from functools import cached_property
except ImportError:
# If cached_property is not available,
# just use the property decorator, without caching
# This is for backward compatibility with Python<3.8
cached_property = property
from multiprocessing import Process, Queue