[Freeswitch-svn] [commit] r8210 - freeswitch/trunk/scripts/socket/freepy
Freeswitch SVN
greenlizard at freeswitch.org
Mon Apr 28 00:02:35 EDT 2008
Author: greenlizard
Date: Mon Apr 28 00:02:34 2008
New Revision: 8210
Modified:
freeswitch/trunk/scripts/socket/freepy/fseventlistener.py
Log:
attempt to fix data must not be unicode error
Modified: freeswitch/trunk/scripts/socket/freepy/fseventlistener.py
==============================================================================
--- freeswitch/trunk/scripts/socket/freepy/fseventlistener.py (original)
+++ freeswitch/trunk/scripts/socket/freepy/fseventlistener.py Mon Apr 28 00:02:34 2008
@@ -85,7 +85,7 @@
msg = "auth %s" % passwd
req = request.LoginRequest()
self.active_request = req
- self.transport.write("%s\n\n" % msg)
+ self.transport.write("%s\n\n" % str(msg))
return req.getDeferred()
def sniff_events(self, output_type, events):
@@ -95,7 +95,7 @@
"""
event_list = " ".join(events)
msg = "event %s %s" % (output_type, event_list)
- self.transport.write("%s\n\n" % msg)
+ self.transport.write("%s\n\n" % str(msg))
def sniff_custom_events(self, output_type, events):
"""
@@ -115,7 +115,7 @@
@param output_type - eg, xml or plain
"""
msg = "event %s all" % output_type
- self.transport.write("%s\n\n" % msg)
+ self.transport.write("%s\n\n" % str(msg))
def lineReceived(self, line):
if not self.active_request:
More information about the Freeswitch-svn
mailing list