Merge "Simplify codes when _LoadOemDicts" am: ff35cbd110 am: f31a78141f

Original change: https://android-review.googlesource.com/c/platform/build/+/2015235

Change-Id: Ibf825099116538ae46d8d706b8f10a9cf6902906
This commit is contained in:
Kelvin Zhang
2022-03-09 00:03:36 +00:00
committed by Automerger Merge Worker

View File

@@ -543,8 +543,7 @@ def _LoadOemDicts(oem_source):
oem_dicts = [] oem_dicts = []
for oem_file in oem_source: for oem_file in oem_source:
with open(oem_file) as fp: oem_dicts.append(common.LoadDictionaryFromFile(oem_file))
oem_dicts.append(common.LoadDictionaryFromLines(fp.readlines()))
return oem_dicts return oem_dicts