modifié: superTornado.py

This commit is contained in:
sidya82 2014-04-02 19:58:25 +02:00
parent 88a73713a8
commit 51ff48c4cd
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
f = urlopen(GlobalVars.urlCamera)
temp.write(f.read())
temp.close()
with open("temp","r") as temp :
with open("temp","r") as d :
with open("temp2","w") as dest :
isData = False
for ligne in temp :
@ -265,7 +265,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
if data == "ENDSECTIONEVENT" :
isData = True
data = f.read()
temp.close()
d.close()
dest.close()
with open("temp2","r") as data :
encoded = base64.b64encode(data.read())