aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2020-02-02 21:11:38 +0000
committerArmin Kuster <akuster808@gmail.com>2020-02-10 19:13:52 -0800
commit2df5bbcf1742fedc84f0de5122a044df8774992f (patch)
treefed80fb5bd37bee61895558b33379e88635c1d0a /recipes-security
parentace43479e725e524a7c2b168adcd5dcddd512868 (diff)
downloadmeta-security-2df5bbcf1742fedc84f0de5122a044df8774992f.tar.gz
meta-security-2df5bbcf1742fedc84f0de5122a044df8774992f.tar.bz2
meta-security-2df5bbcf1742fedc84f0de5122a044df8774992f.zip
bastille: convert to py3
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rwxr-xr-xrecipes-security/bastille/files/set_required_questions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-security/bastille/files/set_required_questions.py b/recipes-security/bastille/files/set_required_questions.py
index 4a28358..f306109 100755
--- a/recipes-security/bastille/files/set_required_questions.py
+++ b/recipes-security/bastille/files/set_required_questions.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#Signed-off-by: Anne Mulhern <mulhern@yoctoproject.org>
@@ -83,7 +83,7 @@ def xform_file(qfile, distro, qlabel):
@param name qlabel The question label for which the distro is to be added.
"""
questions_in = open(qfile)
- questions_out = tempfile.NamedTemporaryFile(delete=False)
+ questions_out = tempfile.NamedTemporaryFile(mode="w+", delete=False)
for l in add_requires(qlabel, distro, questions_in):
questions_out.write(l)
questions_out.close()