MCPcopy Create free account
hub / github.com/Distrotech/reportlab / testFiles

Method testFiles

tests/test_source_chars.py:50–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
56def zapTrailingWhitespace(dirname):
57 """Eliminates trailing spaces IN PLACE. Use with extreme care

Callers

nothing calls this directly

Calls 3

checkFileForTabsMethod · 0.95
GlobDirectoryWalkerClass · 0.90

Tested by

no test coverage detected