mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 11:13:02 +02:00
test: Avoid F541 (f-string without any placeholders)
This commit is contained in:
@@ -117,9 +117,9 @@ int trace_outbound_message(struct pt_regs *ctx) {
|
||||
|
||||
|
||||
def print_message(event, inbound):
|
||||
print(f"%s %s msg '%s' from peer %d (%s, %s) with %d bytes: %s" %
|
||||
(
|
||||
f"Warning: incomplete message (only %d out of %d bytes)!" % (
|
||||
print("{} {} msg '{}' from peer {} ({}, {}) with {} bytes: {}".format(
|
||||
|
||||
"Warning: incomplete message (only {} out of {} bytes)!".format(
|
||||
len(event.msg), event.msg_size) if len(event.msg) < event.msg_size else "",
|
||||
"inbound" if inbound else "outbound",
|
||||
event.msg_type.decode("utf-8"),
|
||||
|
||||
Reference in New Issue
Block a user