From 36c3f588d2ab80ce60e8660778ccaa799920f5eb Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sat, 1 Mar 2014 18:08:39 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/superTornado.py b/superTornado.py index fbeae76..01a794a 100644 --- a/superTornado.py +++ b/superTornado.py @@ -94,15 +94,13 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): print 'maison.request("GET", "micom/lamp.php?room=salon1&order=1")' print "->Authorized user access" - try : + """"try : f = urlopen('http://test:a@192.168.0.13/image.jpg?cidx=791836195') data = f.read() encoded = base64.b64encode(data) self.write_message(encoded) except Exception, e : - print e - - + print e""" def on_message(self,mesg): print "->Data receive"