Skip to content

Commit fb5365e

Browse files
committed
Disable newline translation
1 parent 98d45b3 commit fb5365e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unasync/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _unasync_file(self, filepath):
7171
result = _untokenize(tokens)
7272
outfilepath = filepath.replace(self.fromdir, self.todir)
7373
os.makedirs(os.path.dirname(outfilepath), exist_ok=True)
74-
with open(outfilepath, "w", encoding=encoding) as f:
74+
with open(outfilepath, "w", encoding=encoding, newline="") as f:
7575
print(result, file=f, end="")
7676

7777
def _unasync_tokens(self, tokens):

0 commit comments

Comments
 (0)