aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2019-10-01 20:38:58 +0200
committerJason Zaman <perfinion@gentoo.org>2019-12-16 21:08:38 +0800
commit5a88e54aab7cb1c2494e7ef661a361ac4163d9d5 (patch)
tree76821070bceae7f47dee46e5b4cf22bf5938b4eb /support
parentfix Makefile for policy-module directories with same ending (diff)
downloadhardened-refpolicy-5a88e54aab7cb1c2494e7ef661a361ac4163d9d5.tar.gz
hardened-refpolicy-5a88e54aab7cb1c2494e7ef661a361ac4163d9d5.tar.bz2
hardened-refpolicy-5a88e54aab7cb1c2494e7ef661a361ac4163d9d5.zip
segenxml.py: fix format usage in warning message
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'support')
-rw-r--r--support/segenxml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/segenxml.py b/support/segenxml.py
index 115f2870..7a323177 100644
--- a/support/segenxml.py
+++ b/support/segenxml.py
@@ -235,7 +235,7 @@ def getTunableXML(file_name, kind):
template_code = template_file.readlines()
template_file.close()
except OSError:
- warning("cannot open file %s for read, bailing out" % templatedir + "/" + template_call.group(1) + ".iftemplate")
+ warning("cannot open file %s for read, bailing out" % (templatedir + "/" + template_call.group(1) + ".iftemplate"))
return []
# Substitute content (i.e. $1 for argument 1, $2 for argument 2, etc.)
template_split = re.findall(r"[\w\" {}]+", line.strip())