try_import returns a tuple of a boolean and the requested module or attribute.
exists() functions return tracetool.try_import("tracetool.format." + name)[1]
but they should return the boolean value instead.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250929154938.594389-2-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| c.py | ||
| d.py | ||
| h.py | ||
| log_stap.py | ||
| simpletrace_stap.py | ||
| stap.py | ||
| ust_events_c.py | ||
| ust_events_h.py | ||