mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-02-10 00:27:22 +00:00
segenxml.py: fix format usage in warning message
This commit is contained in:
parent
324ecfe95c
commit
67a27c2738
@ -235,7 +235,7 @@ def getTunableXML(file_name, kind):
|
|||||||
template_code = template_file.readlines()
|
template_code = template_file.readlines()
|
||||||
template_file.close()
|
template_file.close()
|
||||||
except OSError:
|
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 []
|
return []
|
||||||
# Substitute content (i.e. $1 for argument 1, $2 for argument 2, etc.)
|
# Substitute content (i.e. $1 for argument 1, $2 for argument 2, etc.)
|
||||||
template_split = re.findall(r"[\w\" {}]+", line.strip())
|
template_split = re.findall(r"[\w\" {}]+", line.strip())
|
||||||
|
Loading…
Reference in New Issue
Block a user