mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +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:
parent
3226446348
commit
254eb56dde
1 changed files with 7 additions and 1 deletions
|
@ -77,7 +77,13 @@ This section has been reverse-engineered from git logs
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
try:
|
||||||
from functools import cached_property
|
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
|
from multiprocessing import Process, Queue
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue