diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-25 13:23:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-25 13:23:47 +0200 |
| commit | 32d96a2b5bc3136d45a66adbdb45fac351b520ce (patch) | |
| tree | acf51c9945f764ab103597c9cba376f154aa600d /Modules/clinic/_winapi.c.h | |
| parent | 65ce60aef150776f884715b4315a10a0d6ae769e (diff) | |
| download | cpython-git-32d96a2b5bc3136d45a66adbdb45fac351b520ce.tar.gz | |
bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. (GH-9689)
Diffstat (limited to 'Modules/clinic/_winapi.c.h')
| -rw-r--r-- | Modules/clinic/_winapi.c.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/clinic/_winapi.c.h b/Modules/clinic/_winapi.c.h index 79d85ff6bb..f1158a0062 100644 --- a/Modules/clinic/_winapi.c.h +++ b/Modules/clinic/_winapi.c.h @@ -19,7 +19,8 @@ _winapi_Overlapped_GetOverlappedResult(OverlappedObject *self, PyObject *arg) PyObject *return_value = NULL; int wait; - if (!PyArg_Parse(arg, "p:GetOverlappedResult", &wait)) { + wait = PyObject_IsTrue(arg); + if (wait < 0) { goto exit; } return_value = _winapi_Overlapped_GetOverlappedResult_impl(self, wait); @@ -944,4 +945,4 @@ _winapi_GetFileType(PyObject *module, PyObject *const *args, Py_ssize_t nargs, P exit: return return_value; } -/*[clinic end generated code: output=145d0d362167c1b1 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5063c84b2d125488 input=a9049054013a1b77]*/ |
