Skip to content

Commit 07731e5

Browse files
update
Check if writing as binary resolves the CRLF issue.
1 parent 1dc4e4f commit 07731e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/scripts/Utils/general_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Helper class for common operations."""
1+
"""Helper class for common operations."""
22
#!/usr/bin/env python3
33
import json
44
import os
@@ -166,5 +166,5 @@ def update_changelog(changelog_path, new_version, add_unreleased_template=False)
166166
)
167167

168168
# Write the changes
169-
with open(changelog_path, 'w', encoding='UTF-8') as file:
169+
with open(changelog_path, 'wb', encoding='UTF-8') as file:
170170
file.write(final_content)

0 commit comments

Comments
 (0)