From f74e16af441de5629cc1ffb176f4386912388aa2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 25 Nov 2006 21:44:14 +0000 Subject: [PATCH] data_smart: Micro optimisation - search for "${" instead of "$" --- lib/bb/data_smart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 054b852..d63fdde 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -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) -- 2.7.4