From 4901fe274bc82b95dc89bcb3de8802a3dfedab32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lapeyre?= Date: Thu, 29 Aug 2019 16:49:08 +0200 Subject: bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593) --- Python/clinic/marshal.c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/clinic/marshal.c.h') 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]*/ -- cgit v1.2.1