gh-126018: Avoid aborting due to unnecessary assert in sys.audit (#126020)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -519,7 +519,6 @@ sys_audit(PyObject *self, PyObject *const *args, Py_ssize_t argc)
|
||||
}
|
||||
|
||||
assert(args[0] != NULL);
|
||||
assert(PyUnicode_Check(args[0]));
|
||||
|
||||
if (!should_audit(tstate->interp)) {
|
||||
Py_RETURN_NONE;
|
||||
|
||||
Reference in New Issue
Block a user