summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-11-17 14:53:46 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-11-17 14:53:46 +0000
commit84a7ed3beb00581226fef0a2cdffcde9e7a1e6ea (patch)
tree349a67d26e491177019edde9fad5d53aa309a4af /lib/bb/data.py
parentc47b0af82f5f4fdd551e1efdd3290cc2c996c35c (diff)
downloadbitbake-contrib-84a7ed3beb00581226fef0a2cdffcde9e7a1e6ea.tar.gz
Micro-Optimisation for parsing. Do not join and split the inherit_cache over and over again
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 819dff967..f3a43bcc7 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -536,8 +536,8 @@ def update_data(d):
def inherits_class(klass, d):
- val = getVar('__inherit_cache', d) or ""
- if os.path.join('classes', '%s.bbclass' % klass) in val.split():
+ val = getVar('__inherit_cache', d) or []
+ if os.path.join('classes', '%s.bbclass' % klass) in val:
return True
return False