summaryrefslogtreecommitdiff
path: root/Modules/_queuemodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-10 10:22:55 -0700
committerGitHub <noreply@github.com>2018-09-10 10:22:55 -0700
commit4d5d219a7ae1351e6f6e7c1c9845a499927d1219 (patch)
tree5a44c65ba956ce68b46b778984b9b16b74a2873b /Modules/_queuemodule.c
parentc0d63bf73b35df374e6e66c08b0e297fb828d744 (diff)
downloadcpython-git-4d5d219a7ae1351e6f6e7c1c9845a499927d1219.tar.gz
[3.7] Fix misleading mentions of tp_size in comments. (GH-9136)
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.. (cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238) Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
Diffstat (limited to 'Modules/_queuemodule.c')
-rw-r--r--Modules/_queuemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c
index 0eb9930274..2a9406cc47 100644
--- a/Modules/_queuemodule.c
+++ b/Modules/_queuemodule.c
@@ -309,7 +309,7 @@ static PyMethodDef simplequeue_methods[] = {
static PyTypeObject PySimpleQueueType = {
PyVarObject_HEAD_INIT(NULL, 0)
"_queue.SimpleQueue", /*tp_name*/
- sizeof(simplequeueobject), /*tp_size*/
+ sizeof(simplequeueobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
(destructor)simplequeue_dealloc, /*tp_dealloc*/