mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Some tweaks to how strings are printed.
This commit is contained in:
parent
0f598271dc
commit
d8b1ce35c7
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user