Skip to content

Commit 976af29

Browse files
Revert "format chore"
This reverts commit a3443ab.
1 parent a3443ab commit 976af29

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/kprobes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def hello_world(ctx: c_void_p) -> c_int64:
1010

1111
@bpf
1212
@section("kprobe/do_unlinkat")
13-
def hello_world2(ctx: c_void_p) -> c_int64:
13+
def hello_world(ctx: c_void_p) -> c_int64:
1414
print("Hello, World!")
1515
return c_int64(0)
1616

pythonbpf/functions_pass.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def process_stmt(
410410
raise ValueError("Failed to evaluate return expression")
411411
if val[1] != ret_type:
412412
raise ValueError(
413-
f"Return type mismatch: expected {ret_type}, got {val[1]}"
413+
"Return type mismatch: expected " f"{ret_type}, got {val[1]}"
414414
)
415415
builder.ret(val[0])
416416
did_return = True
@@ -420,7 +420,8 @@ def process_stmt(
420420
val = builder.load(var)
421421
if val.type != ret_type:
422422
raise ValueError(
423-
f"Return type mismatch: expected{ret_type}, got {val.type}"
423+
"Return type mismatch: expected"
424+
f"{ret_type}, got {val.type}"
424425
)
425426
builder.ret(val)
426427
did_return = True

0 commit comments

Comments
 (0)