aboutsummaryrefslogtreecommitdiff
path: root/debug/rbb_daisychain.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-06-23 08:08:19 -0700
committerGitHub <noreply@github.com>2022-06-23 08:08:19 -0700
commitfc38747b2dba58c7c80edd99e965c57a373cf294 (patch)
tree2df4215b16c6485dcdd1e2165d1de6674c9d5600 /debug/rbb_daisychain.py
parent8567faa64561f504c1e9a70ffec74ac1a9f2091b (diff)
downloadriscv-tests-fc38747b2dba58c7c80edd99e965c57a373cf294.zip
riscv-tests-fc38747b2dba58c7c80edd99e965c57a373cf294.tar.gz
riscv-tests-fc38747b2dba58c7c80edd99e965c57a373cf294.tar.bz2
Another pylint upgrade. (#398)
* Another pylint upgrade. Lots of format string changes, which are more readable. More files to come... * Satisfy pylint for two more files.
Diffstat (limited to 'debug/rbb_daisychain.py')
-rwxr-xr-xdebug/rbb_daisychain.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/debug/rbb_daisychain.py b/debug/rbb_daisychain.py
index b7c21e6..4d9ea8a 100755
--- a/debug/rbb_daisychain.py
+++ b/debug/rbb_daisychain.py
@@ -56,8 +56,8 @@ class Chain:
assert len(values) == 0
values = list(tap.execute(bytes(tmp_commands)))
if self.debug:
- sys.stdout.write(" %d %r -> %r\n" % (i, bytes(tmp_commands),
- bytes(values)))
+ sys.stdout.write(f" {i} {bytes(tmp_commands)!r} -> "
+ f"{bytes(values)!r}\n")
return bytes(values)
def main():
@@ -80,7 +80,7 @@ def main():
for port in args.tap_port:
chain.append(Tap(port))
- sys.stdout.write("Listening on port %d.\n" % server.getsockname()[1])
+ sys.stdout.write(f"Listening on port {server.getsockname()[1]}.\n")
sys.stdout.flush()
while True:
@@ -98,10 +98,10 @@ def main():
break
if args.debug:
- sys.stdout.write("%r\n" % commands)
+ sys.stdout.write(f"{commands!r}\n")
result = chain.execute(commands)
if args.debug:
- sys.stdout.write(" -> %r\n" % result)
+ sys.stdout.write(f" -> {result!r}\n")
client.send(result)
client.close()