2
0
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:
Mark Grassi 2023-02-19 17:18:08 -05:00
parent 2742d1f1ee
commit cc7f8fb4d6

View File

@ -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=()):