diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-11-17 14:53:46 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-11-17 14:53:46 +0000 |
commit | 84a7ed3beb00581226fef0a2cdffcde9e7a1e6ea (patch) | |
tree | 349a67d26e491177019edde9fad5d53aa309a4af /lib/bb/data.py | |
parent | c47b0af82f5f4fdd551e1efdd3290cc2c996c35c (diff) | |
download | bitbake-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.py | 4 |
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 |