summaryrefslogtreecommitdiff
path: root/contrib/python/podman/libs/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/podman/libs/__init__.py')
-rw-r--r--contrib/python/podman/libs/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/podman/libs/__init__.py b/contrib/python/podman/libs/__init__.py
index 9db5dacf5..3a8a35021 100644
--- a/contrib/python/podman/libs/__init__.py
+++ b/contrib/python/podman/libs/__init__.py
@@ -1,4 +1,5 @@
"""Support files for podman API implementation."""
+import collections
import datetime
import functools
@@ -12,12 +13,11 @@ __all__ = [
def cached_property(fn):
- """Cache return to save future expense."""
+ """Decorate property to cache return value."""
return property(functools.lru_cache(maxsize=8)(fn))
-# Cannot subclass collections.UserDict, breaks varlink
-class Config(dict):
+class Config(collections.UserDict):
"""Silently ignore None values, only take key once."""
def __init__(self, **kwargs):