summaryrefslogtreecommitdiff
path: root/scripts/code_tools
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/code_tools')
-rw-r--r--scripts/code_tools/fix_whitespace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/code_tools/fix_whitespace.py b/scripts/code_tools/fix_whitespace.py
index 91e82f26f4..7a88265479 100644
--- a/scripts/code_tools/fix_whitespace.py
+++ b/scripts/code_tools/fix_whitespace.py
@@ -55,7 +55,7 @@ def convert_tabs_to_spaces(file_path, tab_stop):
new_lines.append(new_line + '\n')
- with open(file_path, 'w') as file:
+ with open(file_path, 'w', newline='\n') as file:
file.writelines(new_lines)
def process_directory(directory, extensions, tab_stop):