mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
@@ -99,7 +99,7 @@ class EfuseFlashEncSerial(IdfSerial):
|
||||
with tempfile.NamedTemporaryFile(suffix='.json') as temp_file:
|
||||
temp_file_path = temp_file.name
|
||||
espefuse.main(f'--virt -c {self.target} summary --format json --file {temp_file_path}'.split())
|
||||
with open(temp_file_path, 'r') as file:
|
||||
with open(temp_file_path, 'r', encoding='utf-8') as file:
|
||||
efuse_summary = json.load(file)
|
||||
if efuse_name in efuse_summary:
|
||||
data = efuse_summary[efuse_name]
|
||||
|
Reference in New Issue
Block a user