diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-07 14:35:15 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-07 14:35:15 (GMT) |
commit | 1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb (patch) | |
tree | d0bac08478e97df6c9f949e0f9622a67d4d15d96 /Modules/_sre.c | |
parent | b8a2f51ceb636878ec767554eddbb11ff4502c55 (diff) | |
download | cpython-1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb.zip cpython-1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb.tar.gz cpython-1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb.tar.bz2 |
Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 150229d..84c8769 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -278,8 +278,8 @@ _sre.getcodesize -> int [clinic start generated code]*/ static int -_sre_getcodesize_impl(PyModuleDef *module) -/*[clinic end generated code: output=794f1f98ef4883e5 input=bd6f6ecf4916bb2b]*/ +_sre_getcodesize_impl(PyObject *module) +/*[clinic end generated code: output=e0db7ce34a6dd7b1 input=bd6f6ecf4916bb2b]*/ { return sizeof(SRE_CODE); } @@ -294,8 +294,8 @@ _sre.getlower -> int [clinic start generated code]*/ static int -_sre_getlower_impl(PyModuleDef *module, int character, int flags) -/*[clinic end generated code: output=5fc3616ae2a4c306 input=087d2f1c44bbca6f]*/ +_sre_getlower_impl(PyObject *module, int character, int flags) +/*[clinic end generated code: output=47eebc4c1214feb5 input=087d2f1c44bbca6f]*/ { if (flags & SRE_FLAG_LOCALE) return sre_lower_locale(character); @@ -1454,10 +1454,10 @@ _sre.compile [clinic start generated code]*/ static PyObject * -_sre_compile_impl(PyModuleDef *module, PyObject *pattern, int flags, +_sre_compile_impl(PyObject *module, PyObject *pattern, int flags, PyObject *code, Py_ssize_t groups, PyObject *groupindex, PyObject *indexgroup) -/*[clinic end generated code: output=3004b293730bf309 input=7d059ec8ae1edb85]*/ +/*[clinic end generated code: output=ef9c2b3693776404 input=7d059ec8ae1edb85]*/ { /* "compile" pattern descriptor to pattern object */ |