aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 7d3a5c4..037b195 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2014 The Meson development team
+# Copyright 2012-2017 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -1487,8 +1487,11 @@ class ConfigurationData():
def __repr__(self):
return repr(self.values)
+ def __contains__(self, value):
+ return value in self.values
+
def get(self, name):
- return self.values[name] # (val, desc)
+ return self.values[name] # (val, desc)
def keys(self):
return self.values.keys()