diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-10-14 10:58:07 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-10-14 10:58:07 -0700 |
commit | 0d0b963fe543169d069a2a69ae79735d404a2e33 (patch) | |
tree | 853d270219a799c884f26f3ed5806e407d5cac58 /sleekxmpp/thirdparty/statemachine.py | |
parent | a41a4369c6238f0d479d4190e79df6332c5b98fe (diff) | |
download | slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.gz slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.bz2 slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.tar.xz slixmpp-0d0b963fe543169d069a2a69ae79735d404a2e33.zip |
fixed socket name collision in xmlstream.py and fixed python 3.x compatibility
Diffstat (limited to 'sleekxmpp/thirdparty/statemachine.py')
-rw-r--r-- | sleekxmpp/thirdparty/statemachine.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sleekxmpp/thirdparty/statemachine.py b/sleekxmpp/thirdparty/statemachine.py index 140c0819..28a594b2 100644 --- a/sleekxmpp/thirdparty/statemachine.py +++ b/sleekxmpp/thirdparty/statemachine.py @@ -268,11 +268,11 @@ class _StateCtx: if __name__ == '__main__': def callback(s, s2): - print 1, s.transition('on', 'off', wait=0.0, func=callback, args=[s,s2]) - print 2, s2.transition('off', 'on', func=callback, args=[s,s2]) + print((1, s.transition('on', 'off', wait=0.0, func=callback, args=[s,s2]))) + print((2, s2.transition('off', 'on', func=callback, args=[s,s2]))) return True s = StateMachine(('off', 'on')) s2 = StateMachine(('off', 'on')) - print 3, s.transition('off', 'on', wait=0.0, func=callback, args=[s,s2]), - print s.current_state(), s2.current_state() + print((3, s.transition('off', 'on', wait=0.0, func=callback, args=[s,s2]),)) + print((s.current_state(), s2.current_state())) |