summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-07-16 17:06:51 +1200
committerFlorian Baumann <derflob@derflob.de>2016-07-16 17:06:51 +1200
commit0bd6fa9fa02a24e353fa84b90d718a8d2c8cfe09 (patch)
treedf1b0d56d02ec1b3666aab13566830a0e78cd0c3
parent4fe0d93fdbbc521906b603fb993e3ac7de5d3a66 (diff)
downloadxmpp-0bd6fa9fa02a24e353fa84b90d718a8d2c8cfe09.tar.gz
xmpp-0bd6fa9fa02a24e353fa84b90d718a8d2c8cfe09.tar.bz2
iterate over dict items!
-rw-r--r--__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
index 6c68069..a099500 100644
--- a/__init__.py
+++ b/__init__.py
@@ -352,7 +352,7 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
lines = []
if (len(cmd) == 0 or cmd[0] == 'all'):
lines.append("Available commands:")
- for (attr, fn) in self.__dict__:
+ for (attr, fn) in self.__dict__.items():
if (attr.startswith('_cmd_'), hasattr(fn, 'xmpp_name') and not fn.hidden):
lines.append("{} - {}".format(fn.xmpp_name, fn.desc))
else: