2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-23 02:27:12 +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): def set_environ(env):
keys = env.keys() for k, v in sorted(env.items()):
keys.sort() msg("Using: {}={}".format(k, v))
for k in keys: os.environ[k] = v
msg("Using: %s=%s" % (k, env[k]))
os.environ[k] = env[k]
def aa_exec(command, opt, environ=None, verify_rules=()): def aa_exec(command, opt, environ=None, verify_rules=()):