diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-06-01 11:41:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 11:41:16 -0400 |
commit | 3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40 (patch) | |
tree | 8c52d190cf29a0d4f5fe958ada4c0e15ecfeebdd /contrib/python/podman/libs/__init__.py | |
parent | ff3b46e769bc9a064ee8f45b9dbff8795d94bb7a (diff) | |
parent | 2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871 (diff) | |
download | podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.tar.gz podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.tar.bz2 podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.zip |
Merge pull request #869 from jwhonce/wip/attach
Implement container attach
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): |