summaryrefslogtreecommitdiffstats
path: root/Modules/collectionsmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-02-29 15:40:53 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-02-29 15:40:53 (GMT)
commit87f10137bff2f5a169e4bd47d5392bc595350e4d (patch)
treed03a398e22a00d0f821315c42dd48fc3b88809ac /Modules/collectionsmodule.c
parent9a8d55e4a1da41168d8f54c0d3dded549e2c4708 (diff)
downloadcpython-87f10137bff2f5a169e4bd47d5392bc595350e4d.zip
cpython-87f10137bff2f5a169e4bd47d5392bc595350e4d.tar.gz
cpython-87f10137bff2f5a169e4bd47d5392bc595350e4d.tar.bz2
Make deque_type static so namespace is not polluted.
Diffstat (limited to 'Modules/collectionsmodule.c')
-rw-r--r--Modules/collectionsmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c
index 2b5cb10..252c5a6 100644
--- a/Modules/collectionsmodule.c
+++ b/Modules/collectionsmodule.c
@@ -34,7 +34,7 @@ typedef struct {
int len;
} dequeobject;
-PyTypeObject deque_type;
+static PyTypeObject deque_type;
static PyObject *
deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
@@ -641,7 +641,7 @@ PyDoc_STRVAR(deque_doc,
\n\
Build an ordered collection accessible from endpoints only.");
-PyTypeObject deque_type = {
+static PyTypeObject deque_type = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
"collections.deque", /* tp_name */