mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
double-quote-string-fixer
This commit is contained in:
parent
4575652bd2
commit
8626e266dd
8 changed files with 27 additions and 26 deletions
|
|
@ -115,9 +115,9 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
|||
new_lines = sort(lines)
|
||||
|
||||
if lines != new_lines:
|
||||
print("Fixing file `{filename}`".format(filename=filename))
|
||||
print('Fixing file `{filename}`'.format(filename=filename))
|
||||
f.seek(0)
|
||||
f.write("\n".join(new_lines) + "\n")
|
||||
f.write('\n'.join(new_lines) + '\n')
|
||||
f.truncate()
|
||||
retval = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue