mirror of https://github.com/m-labs/artiq.git
afws_client: fix JSON parsing in read_json method
This commit is contained in:
parent
11c5f537bb
commit
378d962edb
|
@ -85,7 +85,7 @@ class Client:
|
||||||
return (await self.reader.readline()).decode("ascii").split()
|
return (await self.reader.readline()).decode("ascii").split()
|
||||||
|
|
||||||
async def read_json(self):
|
async def read_json(self):
|
||||||
return json.loads(await self.reader.readline().decode("ascii"))
|
return json.loads((await self.reader.readline()).decode("ascii"))
|
||||||
|
|
||||||
async def login(self, username, password):
|
async def login(self, username, password):
|
||||||
await self.send_command("LOGIN", username, password)
|
await self.send_command("LOGIN", username, password)
|
||||||
|
|
Loading…
Reference in New Issue