data_smart.py: micro optimisation from bitbake trunk
authorRichard Purdie <richard@openedhand.com>
Mon, 27 Nov 2006 09:15:20 +0000 (09:15 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 27 Nov 2006 09:15:20 +0000 (09:15 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@963 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/data_smart.py

index 054b852..d63fdde 100644 (file)
@@ -78,7 +78,7 @@ class DataSmart:
         if varname and varname in self.expand_cache:
             return self.expand_cache[varname]
 
-        while s.find('$') != -1:
+        while s.find('${') != -1:
             olds = s
             try:
                 s = __expand_var_regexp__.sub(var_sub, s)