From 0d0b963fe543169d069a2a69ae79735d404a2e33 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 14 Oct 2010 10:58:07 -0700 Subject: fixed socket name collision in xmlstream.py and fixed python 3.x compatibility --- sleekxmpp/thirdparty/statemachine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sleekxmpp/thirdparty/statemachine.py') 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())) -- cgit v1.2.3