summaryrefslogtreecommitdiff
path: root/contrib/python/podman/libs/__init__.py
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-06-01 11:41:16 -0400
committerGitHub <noreply@github.com>2018-06-01 11:41:16 -0400
commit3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40 (patch)
tree8c52d190cf29a0d4f5fe958ada4c0e15ecfeebdd /contrib/python/podman/libs/__init__.py
parentff3b46e769bc9a064ee8f45b9dbff8795d94bb7a (diff)
parent2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871 (diff)
downloadpodman-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__.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):