<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 7:53 AM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":10q" style="overflow:hidden">@@ -583,6 +588,14 @@ <span class="il">class</span> DataSmart(MutableMapping):<br>


                 value = copy.copy(local_var[&quot;defaultval&quot;])<br>
         if expand and value:<br>
             value = self.expand(value, None)<br>
+        if value and flag == &quot;_content&quot; and local_var and &quot;_removeactive&quot; in local_var:<br>
+            for i in local_var[&quot;_removeactive&quot;]:<br>
+                if &quot; &quot; + i + &quot; &quot; in value:<br>
+                    value = value.replace(&quot; &quot; + i + &quot; &quot;, &quot; &quot;)<br>
+                if value.startswith(i + &quot; &quot;):<br>
+                    value = value[len(i + &quot; &quot;):]<br>
+                if value.endswith(&quot; &quot; + i):<br>
+                    value = value[:-len(&quot; &quot; + i)]</div></blockquote></div><br>I&#39;m curious, did you profile this implementation vs a split-filter-rejoin?<br>-- <br>Christopher Larson</div></div>