mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue