diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-14 11:19:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 11:19:51 +0200 |
commit | afb3e71a1710c444fbe789b51df43ee16ee9ede7 (patch) | |
tree | 31c2164ceb03c23e1ce6a10c93a016693349f776 /Modules/clinic/arraymodule.c.h | |
parent | 7b36016a15aeed0d76a4c05a66203e6d7723aace (diff) | |
download | cpython-git-afb3e71a1710c444fbe789b51df43ee16ee9ede7.tar.gz |
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
Diffstat (limited to 'Modules/clinic/arraymodule.c.h')
-rw-r--r-- | Modules/clinic/arraymodule.c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h index aa9938868f..0d1008743e 100644 --- a/Modules/clinic/arraymodule.c.h +++ b/Modules/clinic/arraymodule.c.h @@ -376,14 +376,14 @@ PyDoc_STRVAR(array_array_fromunicode__doc__, {"fromunicode", (PyCFunction)array_array_fromunicode, METH_O, array_array_fromunicode__doc__}, static PyObject * -array_array_fromunicode_impl(arrayobject *self, Py_UNICODE *ustr, +array_array_fromunicode_impl(arrayobject *self, const Py_UNICODE *ustr, Py_ssize_clean_t ustr_length); static PyObject * array_array_fromunicode(arrayobject *self, PyObject *arg) { PyObject *return_value = NULL; - Py_UNICODE *ustr; + const Py_UNICODE *ustr; Py_ssize_clean_t ustr_length; if (!PyArg_Parse(arg, "u#:fromunicode", &ustr, &ustr_length)) { @@ -505,4 +505,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__, #define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \ {"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__}, -/*[clinic end generated code: output=3a4c6f3deb597bfd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3d2bb1aa81541cbd input=a9049054013a1b77]*/ |