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:
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index 5f9b1a8..2299a06 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -150,6 +150,11 @@ class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms ti
def supports(self, feature):
return feature in self.features
+ def serialize(self):
+ if self.stanza is None:
+ raise ValueError('Unable to serialize DiscoInfo, no stanza found')
+ return str(self.stanza)
+
@property
def node(self):
try: