Commit 9b50a7f2 authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

Make PySimpleQueueType static. (GH-8175)

parent ced350b1
...@@ -8,7 +8,7 @@ class _queue.SimpleQueue "simplequeueobject *" "&PySimpleQueueType" ...@@ -8,7 +8,7 @@ class _queue.SimpleQueue "simplequeueobject *" "&PySimpleQueueType"
[clinic start generated code]*/ [clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=cf49af81bcbbbea6]*/ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=cf49af81bcbbbea6]*/
extern PyTypeObject PySimpleQueueType; /* forward decl */ static PyTypeObject PySimpleQueueType; /* forward decl */
static PyObject *EmptyError; static PyObject *EmptyError;
...@@ -306,7 +306,7 @@ static PyMethodDef simplequeue_methods[] = { ...@@ -306,7 +306,7 @@ static PyMethodDef simplequeue_methods[] = {
}; };
PyTypeObject PySimpleQueueType = { static PyTypeObject PySimpleQueueType = {
PyVarObject_HEAD_INIT(NULL, 0) PyVarObject_HEAD_INIT(NULL, 0)
"_queue.SimpleQueue", /*tp_name*/ "_queue.SimpleQueue", /*tp_name*/
sizeof(simplequeueobject), /*tp_size*/ sizeof(simplequeueobject), /*tp_size*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment