Merge "build/file_utils: Newline for mapping files" am: bb693183a0
Change-Id: I939835fc13f93d42fe1db43263f02ae817afec0d
This commit is contained in:
commit
7d677fcc57
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue