From aa3bd82194399e090f9ffaec45545de999987fa8 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sun, 21 Sep 2025 18:12:19 +0530 Subject: [PATCH] fix format errors --- examples/execve.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/execve.py b/examples/execve.py index a0d5c68..2db23f2 100644 --- a/examples/execve.py +++ b/examples/execve.py @@ -1,8 +1,9 @@ -from pythonbpf import bpf, map, section, bpfglobal, BPF -from ctypes import c_void_p, c_int64, c_int32, c_uint64 -from pythonbpf.helpers import ktime -from pythonbpf.maps import HashMap import time +from ctypes import c_int32, c_int64, c_uint64, c_void_p + +from pythonbpf import BPF, bpf, bpfglobal, map, section +from pythonbpf.maps import HashMap + @bpf @map @@ -25,7 +26,6 @@ def hello_again(ctx: c_void_p) -> c_int64: key = 0 tsp = last().lookup(key) print(tsp) - ts = ktime() return c_int64(0) @@ -34,6 +34,7 @@ def hello_again(ctx: c_void_p) -> c_int64: def LICENSE() -> str: return "GPL" + b = BPF() b.load_and_attach() while True: