2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Fix AttributeError missed in Python 3 migration

This commit is contained in:
Mark Grassi
2022-10-05 22:30:56 -04:00
parent 8300615833
commit 0b625e92b7

View File

@@ -694,10 +694,8 @@ def run_xsandbox(command, opt):
x.verify_host_setup()
# Debug: show old environment
keys = x.old_environ.keys()
keys.sort()
for k in keys:
debug("Old: %s=%s" % (k, x.old_environ[k]))
for k, v in sorted(x.old_environ.items()):
debug("Old: %s=%s" % (k, v))
try:
x.start()