diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-07-07 22:21:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 22:21:15 (GMT) |
commit | 9b50a7f29b761920c04d8c3435d216145da15311 (patch) | |
tree | 2da623b514df3816c93a07e9cdbfb514343a3f5f | |
parent | ced350b1952857a9b9c68ec7e2786358bcb61050 (diff) | |
download | cpython-9b50a7f29b761920c04d8c3435d216145da15311.zip cpython-9b50a7f29b761920c04d8c3435d216145da15311.tar.gz cpython-9b50a7f29b761920c04d8c3435d216145da15311.tar.bz2 |
Make PySimpleQueueType static. (GH-8175)
-rw-r--r-- | Modules/_queuemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c index 8715337..0eb9930 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*/ |