Merge pull request #115 from cgzones/fixpy

segenxml.py: fix format usage in warning message
This commit is contained in:
Chris PeBenito 2019-10-03 18:58:37 -04:00 committed by GitHub
commit a00fbd47d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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