From 9a3effbe40cb32c1850ebde5f1a0b13f3550b161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 14 May 2018 11:09:08 +0200 Subject: [PATCH] xep_0384: convert text value to str --- stanza.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stanza.py b/stanza.py index 0c7a854..db6205e 100644 --- a/stanza.py +++ b/stanza.py @@ -83,7 +83,7 @@ class SignedPreKeyPublic(ElementBase): return self.xml.text def set_value(self, value): - self.xml.text = value + self.xml.text = str(value) def del_value(self): self.xml.text = '' @@ -99,7 +99,7 @@ class SignedPreKeySignature(ElementBase): return self.xml.text def set_value(self, value): - self.xml.text = value + self.xml.text = str(value) def del_value(self): self.xml.text = '' @@ -115,7 +115,7 @@ class IdentityKey(ElementBase): return self.xml.text def set_value(self, value): - self.xml.text = value + self.xml.text = str(value) def del_value(self): self.xml.text = ''