(self)
| 48 | self.output.write("file %s contains %d trailing spaces, or %0.2f%% wastage\n" % (filename, badChars, 100.0*badChars/initSize)) |
| 49 | |
| 50 | def testFiles(self): |
| 51 | w = GlobDirectoryWalker(RL_HOME, '*.py') |
| 52 | for filename in w: |
| 53 | self.checkFileForTabs(filename) |
| 54 | self.checkFileForTrailingSpaces(filename) |
| 55 | |
| 56 | def zapTrailingWhitespace(dirname): |
| 57 | """Eliminates trailing spaces IN PLACE. Use with extreme care |
nothing calls this directly
no test coverage detected