Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2014-04-09 19:18:14 +0400
committerYann Leboulanger <asterix@lagaule.org>2014-04-09 19:18:14 +0400
commitd945344804a34ddb62ea39cf6fd23e813fb781eb (patch)
tree56587264cc393c6fda159f485ed52f4185671911
parent8e9fe049e51fd8de0d5aed47f5f72bd343bbaf13 (diff)
remove bad .encode()python23
-rw-r--r--nbxmpp/c14n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/c14n.py b/nbxmpp/c14n.py
index 764ecd8..d8af8d3 100644
--- a/nbxmpp/c14n.py
+++ b/nbxmpp/c14n.py
@@ -50,7 +50,7 @@ def c14n(node, is_buggy):
s=s[:-1]+' />'
else:
s = s + "</" + node.name + ">"
- return s.encode('utf-8')
+ return s
def normalise_attr(val):
return val.replace('&', '&amp;').replace('<', '&lt;').replace('"', '&quot;').replace('\t', '&#x9;').replace('\n', '&#xA;').replace('\r', '&#xD;')