From 73c051e941a970193d61d35b1dcbb94a53933d5f Mon Sep 17 00:00:00 2001 From: Paolo Smiraglia Date: Fri, 20 Sep 2019 11:06:54 +0200 Subject: [PATCH] Fix TypeError when Python 3.x --- tools/make_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_metadata.py b/tools/make_metadata.py index f2ae44764..cef5a0991 100755 --- a/tools/make_metadata.py +++ b/tools/make_metadata.py @@ -81,5 +81,5 @@ xmldoc = None valid_instance(eid) - xmldoc = metadata_tostring_fix(eid, nspair, xmldoc) + xmldoc = metadata_tostring_fix(eid, nspair, xmldoc.encode()) print(xmldoc.decode("utf-8"))