From 3ea628fccc5c6276264c221adbfe057cf5df9b87 Mon Sep 17 00:00:00 2001 From: Robert Craig Date: Tue, 1 Apr 2014 10:54:15 -0400 Subject: [PATCH] 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 --- tools/post_process_mac_perms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/post_process_mac_perms b/tools/post_process_mac_perms index 47f43a0cf..25893ed38 100755 --- a/tools/post_process_mac_perms +++ b/tools/post_process_mac_perms @@ -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('', mac_perms_string) + sys.stdout.write(line.replace('', mac_perms_string)) def main(argv): parser = argparse.ArgumentParser(description=__doc__)