summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-12-03 22:35:23 +0100
committermathieui <mathieui@mathieui.net>2020-12-03 23:28:27 +0100
commit98b9a6f9e3d2932f2cc1f038cc8e82d3922a1c6e (patch)
tree5787667df9087d91b7a8fad835ce462e300a3892
parentde548fbccec7df25b2221a2f9b67384ff16038cf (diff)
downloadslixmpp-98b9a6f9e3d2932f2cc1f038cc8e82d3922a1c6e.tar.gz
slixmpp-98b9a6f9e3d2932f2cc1f038cc8e82d3922a1c6e.tar.bz2
slixmpp-98b9a6f9e3d2932f2cc1f038cc8e82d3922a1c6e.tar.xz
slixmpp-98b9a6f9e3d2932f2cc1f038cc8e82d3922a1c6e.zip
XEP-0045: Remove "self" returns from stanza methods
-rw-r--r--slixmpp/plugins/xep_0045/stanza.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/slixmpp/plugins/xep_0045/stanza.py b/slixmpp/plugins/xep_0045/stanza.py
index 337363c8..42aab794 100644
--- a/slixmpp/plugins/xep_0045/stanza.py
+++ b/slixmpp/plugins/xep_0045/stanza.py
@@ -69,12 +69,10 @@ class MUCBase(ElementBase):
def set_affiliation(self, value):
self.set_item_attr('affiliation', value)
- return self
def del_affiliation(self):
# TODO: set default affiliation
self.del_item_attr('affiliation')
- return self
def get_jid(self):
return JID(self.get_item_attr('jid', ''))
@@ -83,11 +81,9 @@ class MUCBase(ElementBase):
if not isinstance(value, str):
value = str(value)
self.set_item_attr('jid', value)
- return self
def del_jid(self):
self.del_item_attr('jid')
- return self
def get_role(self):
return self.get_item_attr('role', '')
@@ -95,12 +91,10 @@ class MUCBase(ElementBase):
def set_role(self, value):
# TODO: check for valid role
self.set_item_attr('role', value)
- return self
def del_role(self):
# TODO: set default role
self.del_item_attr('role')
- return self
def get_nick(self):
return self.parent()['from'].resource