[Telepathy-commits] [mingle/master] Dump the incoming stanza with sys.stdout.write instead of print so non-ascii characters work on a non-utf8 terminal
Sjoerd Simons
sjoerd at luon.net
Tue Nov 11 10:44:08 PST 2008
---
client.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/client.py b/client.py
index 8e036fe..c9396c6 100644
--- a/client.py
+++ b/client.py
@@ -1,5 +1,6 @@
#!/usr/bin/python
+import sys
from twisted.internet import defer, reactor
from twisted.words.protocols.jabber import xmlstream
from twisted.words.protocols.jabber.jid import JID
@@ -248,7 +249,7 @@ class Client:
def onElement(x):
if self.dump:
- print dump_elem(x, '<--')
+ sys.stdout.write(dump_elem(x, '<--'))
real_onElement(x)
stream.send = send
--
1.5.6.5
More information about the Telepathy-commits
mailing list