summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-06-01 20:18:48 (GMT)
committerGitHub <noreply@github.com>2019-06-01 20:18:48 (GMT)
commit3b57f50efc16c65df96914ec53bc8d3dc28e18b6 (patch)
tree7aefb8b9546b90571934cc331a9881c19274731e /Objects/codeobject.c
parent938d9a0167f7fa4ed109484d269902021d274c64 (diff)
downloadcpython-3b57f50efc16c65df96914ec53bc8d3dc28e18b6.zip
cpython-3b57f50efc16c65df96914ec53bc8d3dc28e18b6.tar.gz
cpython-3b57f50efc16c65df96914ec53bc8d3dc28e18b6.tar.bz2
bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index bf68e54..2333075 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -390,9 +390,9 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kw)
&PyTuple_Type, &cellvars))
return NULL;
- if (PySys_Audit("code.__new__", "OOOiiiii",
- code, filename, name, argcount, kwonlyargcount,
- nlocals, stacksize, flags) < 0) {
+ if (PySys_Audit("code.__new__", "OOOiiiiii",
+ code, filename, name, argcount, posonlyargcount,
+ kwonlyargcount, nlocals, stacksize, flags) < 0) {
goto cleanup;
}