We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d872934 commit 21cea97Copy full SHA for 21cea97
pythonbpf/vmlinux_parser/import_detector.py
@@ -106,19 +106,19 @@ def vmlinux_proc(tree: ast.AST, module):
106
107
if not import_statements:
108
logger.info("No vmlinux imports found")
109
- return
+ return None
110
111
# Import vmlinux module directly
112
try:
113
vmlinux_mod = importlib.import_module("vmlinux")
114
except ImportError:
115
logger.warning("Could not import vmlinux module")
116
117
118
source_file = inspect.getsourcefile(vmlinux_mod)
119
if source_file is None:
120
logger.warning("Cannot find source for vmlinux module")
121
122
123
with open(source_file, "r") as f:
124
mod_ast = ast.parse(f.read(), filename=source_file)
0 commit comments