From a104cd6dae75b4785b3bdc58c944a34a32308b3e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 11 Mar 2012 20:43:21 -0700 Subject: Tidy up disco plugin. --- sleekxmpp/plugins/xep_0030/stanza/items.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0030/stanza') diff --git a/sleekxmpp/plugins/xep_0030/stanza/items.py b/sleekxmpp/plugins/xep_0030/stanza/items.py index c424d90f..512f2336 100644 --- a/sleekxmpp/plugins/xep_0030/stanza/items.py +++ b/sleekxmpp/plugins/xep_0030/stanza/items.py @@ -6,7 +6,7 @@ See the file LICENSE for copying permission. """ -from sleekxmpp.xmlstream import ElementBase, ET, register_stanza_plugin +from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin class DiscoItems(ElementBase): @@ -140,9 +140,11 @@ class DiscoItem(ElementBase): interfaces = set(('jid', 'node', 'name')) def get_node(self): + """Return the item's node name or ``None``.""" return self._get_attr('node', None) def get_name(self): + """Return the item's human readable name, or ``None``.""" return self._get_attr('name', None) -- cgit v1.2.3