Coding style.
- Converted to f-strings.
This commit is contained in:
parent
7cfbcae685
commit
e34e896800
11 changed files with 60 additions and 69 deletions
|
|
@ -30,8 +30,7 @@ class Worker:
|
|||
os.setpriority(os.PRIO_PGRP, self.child_pgid, 19)
|
||||
|
||||
async def run_tool(self, path, tool):
|
||||
self.process.stdin.write(("%s\n%s\n" %
|
||||
(tool.__qualname__, path)).encode("utf-8"))
|
||||
self.process.stdin.write(f"{tool.__qualname__}\n{path}\n".encode("utf-8"))
|
||||
data = await self.process.stdout.readline()
|
||||
return tools.Status(int(data))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue