chore: fix formatting of a few Python files (#20743)
This commit is contained in:
parent
73da4b7215
commit
0eff02dab9
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue