List,<div><br></div><div>I&#39;m having a difficult time with this particular problem.  I have a codebase where I would like to find all occurrences of implicit decodes.  It&#39;s difficult to do this with grep, and I was wondering if there was another way by means of decorators or monkeypatching or compiler/parse tree analysis or something.  An example:</div>

<div><br></div><div>foo = u&#39;bar&#39; + &#39;baz&#39;</div><div><br></div><div>This implicitly decodes &quot;baz&quot; using the system default encoding.  In my case this encoding is ASCII.</div><div><br></div><div>However -- and this is where problems can arise -- what if you had this:</div>

<div><br></div><div>foo = u&#39;bar&#39; + &#39;büz&#39;</div><div><br></div><div>...which results in a SyntaxError if your default encoding is ASCII.</div><div><br></div><div>Any ideas?  I&#39;m having problems googling for solutions because I&#39;m not entirely sure what to google for.</div>

<div><br></div><div>thanks</div><div>Chris<br>-- <br>christopher hiller<br>sr software engineer<br>decipher<br>34 nw 1st ave, ste 305<br>portland or 97209<br>
</div>