From: Oleg Guba Date: Wed, 14 Jul 2021 04:25:09 +0000 (-0700) Subject: [py3:tools/deadlock.py] fix usage of str.replace() method to make it py3 compartible X-Git-Tag: v0.21.0~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0e98076b4311c846509f2de1a2c6e7f0cae1468;p=platform%2Fupstream%2Fbcc.git [py3:tools/deadlock.py] fix usage of str.replace() method to make it py3 compartible --- 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