List,<div><br></div><div>I'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'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'bar' + 'baz'</div><div><br></div><div>This implicitly decodes "baz" 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'bar' + 'büz'</div><div><br></div><div>...which results in a SyntaxError if your default encoding is ASCII.</div><div><br></div><div>Any ideas? I'm having problems googling for solutions because I'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>