Skip to content

Commit 039b280

Browse files
committed
Renamed path to json_path
1 parent 25e17bc commit 039b280

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • translate-messages/src/translate_messages/lib/data

translate-messages/src/translate_messages/lib/data/json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import json, os
22

3-
def read(path):
4-
if not os.path.exists(path) : return {}
5-
with open(path, 'r', encoding='utf-8') as file : return json.load(file)
3+
def read(json_path):
4+
if not os.path.exists(json_path) : return {}
5+
with open(json_path, 'r', encoding='utf-8') as file : return json.load(file)
66

77
def write(src_data, target_path):
88
os.makedirs(os.path.dirname(target_path), exist_ok=True)

0 commit comments

Comments
 (0)