summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/types.py b/meta/lib/oe/types.py
index 4ae58acfac..f778c1de68 100644
--- a/meta/lib/oe/types.py
+++ b/meta/lib/oe/types.py
@@ -105,6 +105,8 @@ def boolean(value):
105 Valid values for true: 'yes', 'y', 'true', 't', '1' 105 Valid values for true: 'yes', 'y', 'true', 't', '1'
106 Valid values for false: 'no', 'n', 'false', 'f', '0' 106 Valid values for false: 'no', 'n', 'false', 'f', '0'
107 """ 107 """
108 if isinstance(value, bool):
109 return value
108 110
109 if not isinstance(value, str): 111 if not isinstance(value, str):
110 raise TypeError("boolean accepts a string, not '%s'" % type(value)) 112 raise TypeError("boolean accepts a string, not '%s'" % type(value))