mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Use newline='' to avoid automatic newline translation
This commit is contained in:
parent
4a01f64c8f
commit
b4e29b5e63
1 changed files with 1 additions and 1 deletions
|
|
@ -25,5 +25,5 @@ def get_resource_path(path):
|
|||
|
||||
def write_file(filename, contents):
|
||||
"""Hax because coveragepy chokes on nested context managers."""
|
||||
with io.open(filename, 'w') as file_obj:
|
||||
with io.open(filename, 'w', newline='') as file_obj:
|
||||
file_obj.write(contents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue