mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
Fix AttributeError caused by Python 3 migration
This commit is contained in:
parent
2742d1f1ee
commit
cc7f8fb4d6
@ -110,11 +110,9 @@ def gen_policy_name(binary):
|
||||
|
||||
|
||||
def set_environ(env):
|
||||
keys = env.keys()
|
||||
keys.sort()
|
||||
for k in keys:
|
||||
msg("Using: %s=%s" % (k, env[k]))
|
||||
os.environ[k] = env[k]
|
||||
for k, v in sorted(env.items()):
|
||||
msg("Using: {}={}".format(k, v))
|
||||
os.environ[k] = v
|
||||
|
||||
|
||||
def aa_exec(command, opt, environ=None, verify_rules=()):
|
||||
|
Loading…
x
Reference in New Issue
Block a user