From bea00cf66bcf351b3009733cf3ae286b7b174de6 Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Thu, 6 Mar 2014 10:34:08 -0800 Subject: [PATCH] utils: two minor cleanups in aa.py This patch removes a debugging print statement accidentally left in, as well as a duplicated initialization to a variable, and moves the variable init closer to the declaration that the variable is a global. Signed-off-by: Steve Beattie Acked-by: Seth Arnold --- utils/apparmor/aa.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 6db8da240..9cc2bf969 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -599,7 +599,6 @@ def get_profile_flags(filename, program): def change_profile_flags(filename, program, flag, set_flag): old_flags = get_profile_flags(filename, program) - print(old_flags) newflags = [] if old_flags: # Flags maybe white-space and/or , separated @@ -2221,13 +2220,12 @@ def do_logprof_pass(logmark='', passno=0, pid=pid): # transitions = hasher() # seen = hasher() # XXX global? global log - global existing_profiles log = [] + global existing_profiles global sev_db # aa = hasher() # profile_changes = hasher() # prelog = hasher() - log = [] # log_dict = hasher() # changed = dict() # skip = hasher() # XXX global?