summaryrefslogtreecommitdiff
path: root/Python/clinic/marshal.c.h
diff options
context:
space:
mode:
authorRémi Lapeyre <remi.lapeyre@henki.fr>2019-08-29 16:49:08 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2019-08-29 17:49:08 +0300
commit4901fe274bc82b95dc89bcb3de8802a3dfedab32 (patch)
tree2e6e4d0b1cdcb499df7f049ebc9dbbdb9f392bbe /Python/clinic/marshal.c.h
parent59725f3badb3028636c8906ecac4ceb0a37f3982 (diff)
downloadcpython-git-4901fe274bc82b95dc89bcb3de8802a3dfedab32.tar.gz
bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593)
Diffstat (limited to 'Python/clinic/marshal.c.h')
-rw-r--r--Python/clinic/marshal.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/clinic/marshal.c.h b/Python/clinic/marshal.c.h
index ab4575340e..05d4830c4a 100644
--- a/Python/clinic/marshal.c.h
+++ b/Python/clinic/marshal.c.h
@@ -152,7 +152,7 @@ marshal_loads(PyObject *module, PyObject *arg)
goto exit;
}
if (!PyBuffer_IsContiguous(&bytes, 'C')) {
- _PyArg_BadArgument("loads", 0, "contiguous buffer", arg);
+ _PyArg_BadArgument("loads", "argument", "contiguous buffer", arg);
goto exit;
}
return_value = marshal_loads_impl(module, &bytes);
@@ -165,4 +165,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=ae2bca1aa239e095 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a859dabe8b0afeb6 input=a9049054013a1b77]*/