Skip to content

Commit

Permalink
Merge pull request #672 from jchv/patch-1
Browse files Browse the repository at this point in the history
Do not apply line endings twice. (#671)
  • Loading branch information
timothycrosley committed Feb 12, 2018
2 parents 582102d + c0b5993 commit 64f9631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isort/isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def __init__(self, file_path=None, file_contents=None, write_to_stdout=False, ch
return
if answer in ('quit', 'q'):
sys.exit(1)
with io.open(self.file_path, encoding=self.file_encoding, mode='w', newline=self.line_separator) as output_file:
with io.open(self.file_path, encoding=self.file_encoding, mode='w', newline='') as output_file:
print("Fixing {0}".format(self.file_path))
output_file.write(self.output)

Expand Down

0 comments on commit 64f9631

Please sign in to comment.