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

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/xmpp/c14n.py')
-rw-r--r--src/common/xmpp/c14n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/xmpp/c14n.py b/src/common/xmpp/c14n.py
index 91fecaa0d..dd44a349a 100644
--- a/src/common/xmpp/c14n.py
+++ b/src/common/xmpp/c14n.py
@@ -22,7 +22,7 @@ def c14n(node):
s = s + c14n(a)
cnt=cnt+1
if (len(node.data)-1) >= cnt: s = s + normalise_text(node.data[cnt])
- if not node.kids and s[-1:]=='>':
+ if not node.kids and s.endswith('>'):
s=s[:-1]+' />'
else:
s = s + "</" + node.name + ">"