From 7ed6425bd7f51d4edccef93954f028f4f7123d58 Mon Sep 17 00:00:00 2001 From: tschulzke Date: Mon, 19 Oct 2020 10:55:43 +0200 Subject: [PATCH] Update build_manifest.py to get rid of python2->3 related error Traceback (most recent call last): File "/root/build_manifest.py", line 61, in f.write(xmlstr) TypeError: write() argument must be str, not bytes (at least when using custom manifests) --- src/build_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_manifest.py b/src/build_manifest.py index 32f9411..4a6b269 100755 --- a/src/build_manifest.py +++ b/src/build_manifest.py @@ -58,4 +58,4 @@ if __name__ == "__main__": xmlstr = minidom.parseString(ET.tostring(xmlout)).toprettyxml(indent=" ", encoding="UTF-8") with open(args.out, "w") as f: - f.write(xmlstr) + f.write(xmlstr.decode('utf-8')) -- GitLab