From e0e2542ed0b16709473fad36871d4055e38feed7 2013-10-04 23:54:36 From: MinRK Date: 2013-10-04 23:54:36 Subject: [PATCH] elementtree.tostring is always bytes --- diff --git a/IPython/parallel/apps/winhpcjob.py b/IPython/parallel/apps/winhpcjob.py index 3175339..92f8603 100644 --- a/IPython/parallel/apps/winhpcjob.py +++ b/IPython/parallel/apps/winhpcjob.py @@ -145,7 +145,7 @@ class WinHPCJob(Configurable): """Return the string representation of the job description XML.""" root = self.as_element() indent(root) - txt = ET.tostring(root, encoding="utf-8") + txt = ET.tostring(root, encoding="utf-8").decode('utf-8') # Now remove the tokens used to order the attributes. txt = re.sub(r'_[A-Z]_','',txt) txt = '\n' + txt