summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-11 17:03:55 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-11 17:34:11 -0700
commitd39ab776e7ceaefc8361150151cf0892dcb70d9c (patch)
tree603dad748ff3fcbf9a5ff39b5c692f6455fbf5e3 /lib/bb/data.py
parentb3b314aade1f0a04e888361e1ac946e5195e1509 (diff)
downloadbitbake-d39ab776e7ceaefc8361150151cf0892dcb70d9c.tar.gz
Apply some 2to3 transforms that don't cause issues in 2.6
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r--lib/bb/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index 85de6bfeb..e401c5342 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -193,7 +193,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
if all:
o.write('# %s=%s\n' % (var, oval))
- if type(val) is not types.StringType:
+ if not isinstance(val, types.StringType):
return 0
if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: