Skip to content

Commit

Permalink
Remove empty PyDoc_STR
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Oct 1, 2023
1 parent a6fedf2 commit 3149e38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
12 changes: 4 additions & 8 deletions Modules/_multiprocessing/semaphore.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,14 +739,10 @@ static PyMethodDef semlock_methods[] = {
*/

static PyMemberDef semlock_members[] = {
{"handle", T_SEM_HANDLE, offsetof(SemLockObject, handle), Py_READONLY,
PyDoc_STR("")},
{"kind", Py_T_INT, offsetof(SemLockObject, kind), Py_READONLY,
PyDoc_STR("")},
{"maxvalue", Py_T_INT, offsetof(SemLockObject, maxvalue), Py_READONLY,
PyDoc_STR("")},
{"name", Py_T_STRING, offsetof(SemLockObject, name), Py_READONLY,
PyDoc_STR("")},
{"handle", T_SEM_HANDLE, offsetof(SemLockObject, handle), Py_READONLY},
{"kind", Py_T_INT, offsetof(SemLockObject, kind), Py_READONLY},
{"maxvalue", Py_T_INT, offsetof(SemLockObject, maxvalue), Py_READONLY},
{"name", Py_T_STRING, offsetof(SemLockObject, name), Py_READONLY},
{NULL}
};

Expand Down
2 changes: 1 addition & 1 deletion Modules/_xxtestfuzz/_xxtestfuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static PyObject* _fuzz_run(PyObject* self, PyObject* args) {
}

static PyMethodDef module_methods[] = {
{"run", (PyCFunction)_fuzz_run, METH_VARARGS, PyDoc_STR("")},
{"run", (PyCFunction)_fuzz_run, METH_VARARGS},
{NULL},
};

Expand Down
2 changes: 1 addition & 1 deletion Modules/cjkcodecs/cjkcodecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ _cjk_free(void *mod)
}

static struct PyMethodDef _cjk_methods[] = {
{"getcodec", (PyCFunction)getcodec, METH_O, PyDoc_STR("")},
{"getcodec", (PyCFunction)getcodec, METH_O},
{NULL, NULL},
};

Expand Down
10 changes: 5 additions & 5 deletions Objects/fileobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@ stdprinter_isatty(PyStdPrinter_Object *self, PyObject *Py_UNUSED(ignored))
}

static PyMethodDef stdprinter_methods[] = {
{"close", (PyCFunction)stdprinter_noop, METH_NOARGS, PyDoc_STR("")},
{"flush", (PyCFunction)stdprinter_noop, METH_NOARGS, PyDoc_STR("")},
{"fileno", (PyCFunction)stdprinter_fileno, METH_NOARGS, PyDoc_STR("")},
{"isatty", (PyCFunction)stdprinter_isatty, METH_NOARGS, PyDoc_STR("")},
{"write", (PyCFunction)stdprinter_write, METH_VARARGS, PyDoc_STR("")},
{"close", (PyCFunction)stdprinter_noop, METH_NOARGS},
{"flush", (PyCFunction)stdprinter_noop, METH_NOARGS},
{"fileno", (PyCFunction)stdprinter_fileno, METH_NOARGS},
{"isatty", (PyCFunction)stdprinter_isatty, METH_NOARGS},
{"write", (PyCFunction)stdprinter_write, METH_VARARGS},
{NULL, NULL} /*sentinel */
};

Expand Down

0 comments on commit 3149e38

Please sign in to comment.