From b0e98076b4311c846509f2de1a2c6e7f0cae1468 Mon Sep 17 00:00:00 2001 From: Oleg Guba Date: Tue, 13 Jul 2021 21:25:09 -0700 Subject: [PATCH] [py3:tools/deadlock.py] fix usage of str.replace() method to make it py3 compartible --- tools/deadlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deadlock.py b/tools/deadlock.py index d6046c24..bc66677f 100755 --- a/tools/deadlock.py +++ b/tools/deadlock.py @@ -477,8 +477,8 @@ def main(): with open('deadlock.c') as f: text = f.read() - text = text.replace(b'MAX_THREADS', str(args.threads)); - text = text.replace(b'MAX_EDGES', str(args.edges)); + text = text.replace('MAX_THREADS', str(args.threads)); + text = text.replace('MAX_EDGES', str(args.edges)); bpf = BPF(text=text) # Trace where threads are created -- 2.34.1