mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
!162 修改bundle.json中的syscap字段匹配规则
Merge pull request !162 from aodongbiao/master
This commit is contained in:
@@ -83,7 +83,7 @@ def read_value_from_json(filepath, key_hierarchy, result_dict):
|
||||
return result_dict
|
||||
finally:
|
||||
f.close()
|
||||
data = [x for x in data if len(x) != 0 and x.isspace() is False]
|
||||
data = [x.split("=")[0].strip() for x in data if len(x) != 0 and x.isspace() is False]
|
||||
if len(data) != 0:
|
||||
result_dict[filepath] = data
|
||||
return result_dict
|
||||
|
||||
Reference in New Issue
Block a user