chore: fix formatting of a few Python files (#20743)

This commit is contained in:
Alexey Kuzmin 2019-10-28 17:02:16 +03:00 committed by John Kleinschmidt
parent 73da4b7215
commit 0eff02dab9
2 changed files with 4 additions and 2 deletions

View file

@ -49,7 +49,8 @@ def hasTrailingWhiteSpace(filepath, fix):
for num, line in enumerate(lines):
fixed_lines.append(line.rstrip() + '\n')
if not fix and line != line.rstrip():
print("Trailing whitespace on line {} in file: {}".format(num + 1, filepath))
print("Trailing whitespace on line {} in file: {}".format(
num + 1, filepath))
return True
if fix:
with open(filepath, 'w') as f: