Merge "Simplify codes when _LoadOemDicts"

This commit is contained in:
Kelvin Zhang
2022-03-08 23:16:32 +00:00
committed by Gerrit Code Review

View File

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