remove strings from source
Duncan Booth
duncan.booth at invalid.invalid
Sat Feb 26 11:47:11 EST 2005
qwweeeit wrote:
> I need your help in correctly identifying the strings (also embedding
> the r'xx..' or u'yy...' as part of the string definition). The problem
> is mainly on the multi-line definitions or in cached strings
> (embedding chr() definitions or escape sequences).
>
Have a look at tokenize.generate_tokens() in the standard library. That
ought to give you enough information to identify the strings reliably and
output modified source.
More information about the Python-list
mailing list