branch: externals/websocket
commit 33d4c428918fb7e993017256cb7a57e4f826e4d4
Author: Nicholas D Steeves <nstee...@gmail.com>
Commit: Nicholas D Steeves <nstee...@gmail.com>

    Make testserver.py py3-ready.
---
 testserver.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testserver.py b/testserver.py
index e75d1d4216..79cd912882 100644
--- a/testserver.py
+++ b/testserver.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 import logging
 import tornado
 import tornado.web
@@ -12,8 +13,8 @@ class EchoWebSocket(websocket.WebSocketHandler):
         logging.info("OPEN")
 
     def on_message(self, message):
-        logging.info(u"ON_MESSAGE: {0}".format(message))
-        self.write_message(u"You said: {0}".format(message))
+        logging.info("ON_MESSAGE: {0}".format(message))
+        self.write_message("You said: {0}".format(message))
 
     def on_close(self):
         logging.info("ON_CLOSE")

Reply via email to