formating
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ class Host:
|
||||
def fixup(self):
|
||||
pass
|
||||
|
||||
#def dispstate(self):
|
||||
# def dispstate(self):
|
||||
# if self.state in ["down", "overdue"]:
|
||||
# state = "<b>%s</b>" % self.state
|
||||
# elif self.state in ["up", "UP"]:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import asyncio
|
||||
import websockets
|
||||
|
||||
|
||||
async def hello():
|
||||
uri = "ws://localhost:50005/messages"
|
||||
async with websockets.connect(uri) as websocket:
|
||||
@@ -15,6 +16,7 @@ async def hello():
|
||||
if greeting == "bye":
|
||||
break
|
||||
|
||||
print('out of here')
|
||||
print("out of here")
|
||||
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(hello())
|
||||
|
||||
Reference in New Issue
Block a user