summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-12 08:14:11 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-12 08:14:13 -0700
commit83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab (patch)
treecd1e77dccf1eaee4b6bdf88778340be6c617255c /lib/bb/data.py
parentd39ab776e7ceaefc8361150151cf0892dcb70d9c (diff)
downloadbitbake-83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab.tar.gz
Kill unnecessary usages of the types module
types.IntType -> int types.StringType -> basestring ... Also moves our ImmutableTypes tuple into our own namespace. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r--lib/bb/data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index e401c5342..ba496c9d9 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -37,7 +37,7 @@ the speed is more critical here.
#
#Based on functions from the base bb module, Copyright 2003 Holger Schurig
-import sys, os, re, types
+import sys, os, re
if sys.argv[0][-5:] == "pydoc":
path = os.path.dirname(os.path.dirname(sys.argv[1]))
else:
@@ -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 not isinstance(val, types.StringType):
+ if not isinstance(val, basestring):
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: