From 3efc1cc38647312261059e415bc36b29db3571b0 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 20 Jan 2014 00:41:38 +0100 Subject: [PATCH] fix unicode xml parsing --- telemeta/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemeta/cache.py b/telemeta/cache.py index 02a2a842..ea484add 100644 --- a/telemeta/cache.py +++ b/telemeta/cache.py @@ -128,6 +128,6 @@ class TelemetaCache(object): node.setAttribute('name', name) node.setAttribute('id', id) node.setAttribute('unit', unit) - node.setAttribute('value', str(value)) + node.setAttribute('value', unicode(value)) root.appendChild(node) return xml.dom.minidom.Document.toprettyxml(doc) -- 2.39.5