--- a/cubicweb/utils.py Thu May 23 00:33:31 2019 +0200
+++ b/cubicweb/utils.py Tue Nov 05 23:19:15 2019 +0100
@@ -616,6 +616,9 @@
self._data = {}
self._lock = Lock()
+ def __contains__(self, key):
+ return key in self._data
+
def __len__(self):
with self._lock:
return len(self._data)