mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
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 <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
daf437f4e3
commit
bea00cf66b
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user