diff options
author | Jhon Honce <jhonce@redhat.com> | 2018-05-25 15:18:43 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2018-05-31 20:13:35 -0700 |
commit | 2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871 (patch) | |
tree | 4cca7b43b7e7e7ab1bff0687d846f2cc6e6540c7 /contrib/python/podman/libs/__init__.py | |
parent | a9e9fd4f5b56f0dd91944b86feba9a2d3814d93e (diff) | |
download | podman-2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871.tar.gz podman-2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871.tar.bz2 podman-2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871.zip |
Implement container attach
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'contrib/python/podman/libs/__init__.py')
-rw-r--r-- | contrib/python/podman/libs/__init__.py | 6 |
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): |