Remove errant newline from generated policy file.
When running the post_process_mac_perms script an unneeded newline is appended to modified mac_permissions.xml file. Use sys.stdout.write instead which avoids any formatting when printing. Change-Id: Ib662dab1566299467371389dc236619aec40f5ac Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
This commit is contained in:
parent
6d8fa69548
commit
3ea628fccc
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ def add_leftover_certs(args):
|
|||
|
||||
# Inline replace with new policy stanzas
|
||||
for line in fileinput.input(args.policy, inplace=True):
|
||||
print line.replace('</policy>', mac_perms_string)
|
||||
sys.stdout.write(line.replace('</policy>', mac_perms_string))
|
||||
|
||||
def main(argv):
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
|
|
Loading…
Reference in a new issue