From 49e7ff4762642c6f0e32e100e36948e01943d0b5 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:40:27 +0800 Subject: [PATCH] Fix: LF endings in routes.json --- dev_tools/route_extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev_tools/route_extract.py b/dev_tools/route_extract.py index 485414aa3..cfa1cf5d3 100644 --- a/dev_tools/route_extract.py +++ b/dev_tools/route_extract.py @@ -95,7 +95,7 @@ class RouteExtract: def model_to_json(model, file): content = model.model_dump_json(indent=2) - with open(file, 'w', encoding='utf-8') as f: + with open(file, 'w', encoding='utf-8', newline='') as f: f.write(content)