diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-09-15 13:10:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 13:10:48 (GMT) |
commit | 47af18859385fd996bf7f8fa4b33600c59a6d626 (patch) | |
tree | a26fcf716ae6bc42baf6e0ca35cee362be6820fa /Modules | |
parent | 5eec58a9e57383128ade7b527965b1efc474735b (diff) | |
download | cpython-47af18859385fd996bf7f8fa4b33600c59a6d626.zip cpython-47af18859385fd996bf7f8fa4b33600c59a6d626.tar.gz cpython-47af18859385fd996bf7f8fa4b33600c59a6d626.tar.bz2 |
Add missing `PyDoc_STR` calls (#109393)
In files:
* Modules/_ctypes/cfield.c
* Modules/_struct.c
* Objects/dictobject.c
* Objects/typevarobject.c
* Objects/unionobject.c
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/cfield.c | 4 | ||||
-rw-r--r-- | Modules/_struct.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index 128506a..bfb40e5 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -250,8 +250,8 @@ PyCField_get_size(PyObject *self, void *data) } static PyGetSetDef PyCField_getset[] = { - { "offset", PyCField_get_offset, NULL, "offset in bytes of this field" }, - { "size", PyCField_get_size, NULL, "size in bytes of this field" }, + { "offset", PyCField_get_offset, NULL, PyDoc_STR("offset in bytes of this field") }, + { "size", PyCField_get_size, NULL, PyDoc_STR("size in bytes of this field") }, { NULL, NULL, NULL, NULL }, }; diff --git a/Modules/_struct.c b/Modules/_struct.c index 1f8f9c4..ff1bf4e 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2198,8 +2198,8 @@ static PyMemberDef s_members[] = { }; static PyGetSetDef s_getsetlist[] = { - {"format", (getter)s_get_format, (setter)NULL, "struct format string", NULL}, - {"size", (getter)s_get_size, (setter)NULL, "struct size in bytes", NULL}, + {"format", (getter)s_get_format, (setter)NULL, PyDoc_STR("struct format string"), NULL}, + {"size", (getter)s_get_size, (setter)NULL, PyDoc_STR("struct size in bytes"), NULL}, {NULL} /* sentinel */ }; |