del: functools.cache

This commit is contained in:
timeshifter
2021-12-03 20:13:31 +01:00
parent 464ed06dbb
commit 92bc8d388c
-2
View File
@@ -4,7 +4,6 @@
from __future__ import annotations from __future__ import annotations
from datetime import datetime from datetime import datetime
from functools import cache
from os import getuid from os import getuid
from pathlib import Path from pathlib import Path
from re import search from re import search
@@ -465,7 +464,6 @@ class Pool:
self._path: ZFSPath = ZFSPath.from_string(name) self._path: ZFSPath = ZFSPath.from_string(name)
@property @property
@cache
def datasets(self) -> list[Dataset]: def datasets(self) -> list[Dataset]:
return ZFS.get_first_level_datasets(self) return ZFS.get_first_level_datasets(self)