#36: Example script echobot.py fails on "normal" message type -----------------------------------+---------------------------------------- Reporter: 530...@… | Owner: jajcus Type: defect | Status: new Priority: minor | Component: pyxmpp Keywords: | -----------------------------------+---------------------------------------- Forwarded message from Debian bug #530498
From: Tim Retout <t...@retout.co.uk> To: Debian Bug Tracking System <sub...@bugs.debian.org> Subject: python-pyxmpp-doc: echobot.py fails on "normal" message type Date: Mon, 25 May 2009 08:34:59 +0100 Package: python-pyxmpp-doc Version: 1.0.1-1 Severity: minor Tags: patch There's a small problem in the echobot.py example script when the received message is the "normal" type. This is the end of the stack trace: File "echobot.py", line 75, in message print u'Type: "normal".' % (t,) TypeError: not all arguments converted during string formatting Here is a fix: --- examples/echobot.py.orig 2009-05-25 08:24:16.000000000 +0100 +++ examples/echobot.py 2009-05-25 08:25:17.000000000 +0100 @@ -72,7 +72,7 @@ if t: print u'Type: "%s".' % (t,) else: - print u'Type: "normal".' % (t,) + print u'Type: "normal".' if stanza.get_type()=="headline": # 'headline' messages should never be replied to return True -- Ticket URL: <http://pyxmpp.jajcus.net/trac/ticket/36> PyXMPP <http://pyxmpp.jajcus.net/> Python XMPP implementation _______________________________________________ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team