Some tweaks to how strings are printed.

This commit is contained in:
Jeremy Fincher 2004-08-18 23:38:05 +00:00
parent 0f598271dc
commit d8b1ce35c7

View File

@ -28,6 +28,11 @@ def main():
s = getText(filename)
node = parser.ast2list(parser.suite(s), True)
for (lineno, string) in strings(node):
if string.startswith("r'") or string.startswith('r"'):
continue
string = eval(string)
if len(string) <= 3:
continue
out.write('%s: %s: %s\n' % (filename, lineno, string))
out.close()