From 2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Fri, 25 May 2018 15:18:43 -0700 Subject: Implement container attach Signed-off-by: Jhon Honce --- contrib/python/podman/libs/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/python/podman/libs/__init__.py') 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): -- cgit v1.2.3-54-g00ecf