summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-07 13:58:15 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-07 13:58:15 -0400
commit9464736551311c015f1511e7535c762923838eaf (patch)
tree8815916d4a872aaa9bd1ed67d1540d3a722dbe57 /sleekxmpp/xmlstream
parent47f1fb16909d3baaec5822b1dcbca89491d0d18c (diff)
downloadslixmpp-9464736551311c015f1511e7535c762923838eaf.tar.gz
slixmpp-9464736551311c015f1511e7535c762923838eaf.tar.bz2
slixmpp-9464736551311c015f1511e7535c762923838eaf.tar.xz
slixmpp-9464736551311c015f1511e7535c762923838eaf.zip
added __str__
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/statemachine.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/statemachine.py b/sleekxmpp/xmlstream/statemachine.py
index b1ab7574..704cabdb 100644
--- a/sleekxmpp/xmlstream/statemachine.py
+++ b/sleekxmpp/xmlstream/statemachine.py
@@ -163,6 +163,10 @@ class StateMachine(object):
Use `StateMachine.ensure(state)` to wait until the machine enters a certain state.
'''
return self.__current_state == state
+
+ def __str__(self):
+ return "".join(( "StateMachine(", ','.join(self.__states), "): ", self.__current_state ))
+
class _StateCtx: