Skip to content

Commit 05bc64b

Browse files
committed
Always write in LF mode
1 parent 33b4128 commit 05bc64b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def _write_version(v):
4343
if line.startswith('__version__ = '):
4444
line = f'__version__ = {repr(str(v))}\n'
4545
lines.append(line)
46-
INIT_PY.write_text(''.join(lines))
46+
with INIT_PY.open('w', newline='\n') as f:
47+
f.write(''.join(lines))
4748

4849

4950
def _render_log():

0 commit comments

Comments
 (0)