Skip to content

Commit

Permalink
coap: ruff up fauxhoc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed May 15, 2024
1 parent c7e7329 commit 86d9665
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/coap/fauxhoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import random

import cbor2
from aiocoap import *
from aiocoap import numbers, oscore
from aiocoap import oscore, Message, POST, Context, GET

import lakers

Expand Down Expand Up @@ -145,13 +144,13 @@ async def main():
uri="coap://10.42.0.61/.well-known/core",
)

print((await ctx.request(msg3).response_raising).payload.decode('utf8'))
print((await ctx.request(msg3).response_raising).payload.decode("utf8"))

normalrequest = Message(
code=GET,
uri="coap://10.42.0.61/poem",
)
print((await ctx.request(normalrequest).response_raising).payload.decode('utf8'))
print((await ctx.request(normalrequest).response_raising).payload.decode("utf8"))

print("Reading stdiout through OSCORE:")
await coap_console.read_stream_to_console(ctx, "coap://10.42.0.61/stdout")
Expand Down

0 comments on commit 86d9665

Please sign in to comment.