Message ID | 20210730030540.1098438-1-jkacur@redhat.com |
---|---|
State | Superseded |
Headers | show |
Series | rteval: Add __contains__ in rtevalConfig | expand |
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py index 578aaa3ab58f..56bbc9ee0de6 100644 --- a/rteval/rtevalConfig.py +++ b/rteval/rtevalConfig.py @@ -126,6 +126,8 @@ class rtevalCfgSection: return self.__cfgdata[key] return None + def __contains__(self, key): + return key in self.__cfgdata def items(self): return list(self.__cfgdata.items())