Skip to content

Commit 72f4c89

Browse files
committed
ports/quectel: pytohn lint test2.
1 parent a2ce7fb commit 72f4c89

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ports/quectel/modules/_boot.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
2-
#
2+
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
6-
#
6+
#
77
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
8+
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,15 +21,13 @@
2121
"""
2222
# global datacall_flag
2323
datacall_flag = 1
24-
2524
def _repl_enable():
2625
global datacall_flag
2726
if "system_config.json" in uos.listdir("/"):
2827
with open("/system_config.json", "r", encoding="utf-8") as fd:
2928
try:
3029
json_data = ujson.load(fd)
3130
datacall_flag = json_data.get("datacallFlag", 1)
32-
3331
except ValueError:
3432
with open("/usr/system_config.json", "w", encoding="utf-8") as fdw:
3533
new_json_data = ujson.dumps({"replFlag": 0, "datacallFlag": datacall_flag})

0 commit comments

Comments
 (0)