Skip to content

Commit 1b9ae74

Browse files
committed
chore: cancel forced LF
1 parent 84b6f36 commit 1b9ae74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

getCloudflareNode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@
3939
result["SIN"] = "Singapore"
4040

4141
# 保存结果
42-
with open("cloudflare-iata.json", "w", encoding="utf-8", newline="\n") as f:
42+
with open("cloudflare-iata.json", "w", encoding="utf-8") as f:
4343
json.dump(result, f, ensure_ascii=False, indent=2)

makeData4zh.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
else:
1616
print(f"原文 {name} 暂无翻译")
1717

18-
with open("cloudflare-iata-zh.json", "w", encoding="utf-8", newline="\n") as f:
18+
with open("cloudflare-iata-zh.json", "w", encoding="utf-8") as f:
1919
json.dump(zh_result, f, ensure_ascii=False, indent=2)

0 commit comments

Comments
 (0)