summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authordevdanzin <74280297+devdanzin@users.noreply.github.com>2024-10-27 14:41:42 (GMT)
committerGitHub <noreply@github.com>2024-10-27 14:41:42 (GMT)
commit80eec52fc813bc7d20478da3114ec6ffd73e7c31 (patch)
treed0b8793474838483aa3e04a69b49a2a7e6cd7a34 /Python/sysmodule.c
parentdc76a4ad3c46af3fb70361be10b8a791cd126931 (diff)
downloadcpython-80eec52fc813bc7d20478da3114ec6ffd73e7c31.zip
cpython-80eec52fc813bc7d20478da3114ec6ffd73e7c31.tar.gz
cpython-80eec52fc813bc7d20478da3114ec6ffd73e7c31.tar.bz2
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>
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 8b92093..24af479 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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;