Merge "build/file_utils: Newline for mapping files" am: bb693183a0

Change-Id: I939835fc13f93d42fe1db43263f02ae817afec0d
This commit is contained in:
Treehugger Robot 2020-04-03 20:02:51 +00:00 committed by Automerger Merge Worker
commit 7d677fcc57

View file

@ -43,6 +43,9 @@ def filter_out(pattern_files, input_file):
with open(input_file, 'r') as in_file:
tmp_output.writelines(line for line in in_file.readlines()
if line not in patterns)
# Append empty line because a completely empty file
# will trip up secilc later on:
tmp_output.write("\n")
tmp_output.flush()
# Replaces the input_file.