commit:     d843ddcc7909964331385920d1116350c65f33cd
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 10 12:04:08 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Aug 10 12:04:08 2017 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=d843ddcc

doesn't convert str to UTF8

 src/py/xml-rewrite-2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
index a6b88ee..943a512 100755
--- a/src/py/xml-rewrite-2.py
+++ b/src/py/xml-rewrite-2.py
@@ -111,7 +111,7 @@ class StreamRewriterBase:
         self.targetValues = targetValues or []
 
     def p(self, str):
-        self.__write(str.encode('utf8'))
+        self.__write(str)
 
     def write(self, out_stream):
         value = self.buffer.getvalue()

Reply via email to