From 6d16a91200088b1922469abf6daf956e9c7564ad Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 7 Jul 2018 15:42:28 -0700 Subject: [PATCH] Make PySimpleQueueType static. (GH-8175) (cherry picked from commit 9b50a7f29b761920c04d8c3435d216145da15311) Co-authored-by: Benjamin Peterson --- Modules/_queuemodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c index 8715337fb51..0eb99302745 100644 --- a/Modules/_queuemodule.c +++ b/Modules/_queuemodule.c @@ -8,7 +8,7 @@ class _queue.SimpleQueue "simplequeueobject *" "&PySimpleQueueType" [clinic start generated code]*/ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=cf49af81bcbbbea6]*/ -extern PyTypeObject PySimpleQueueType; /* forward decl */ +static PyTypeObject PySimpleQueueType; /* forward decl */ static PyObject *EmptyError; @@ -306,7 +306,7 @@ static PyMethodDef simplequeue_methods[] = { }; -PyTypeObject PySimpleQueueType = { +static PyTypeObject PySimpleQueueType = { PyVarObject_HEAD_INIT(NULL, 0) "_queue.SimpleQueue", /*tp_name*/ sizeof(simplequeueobject), /*tp_size*/