From 87f10137bff2f5a169e4bd47d5392bc595350e4d Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 29 Feb 2004 15:40:53 +0000 Subject: [PATCH] Make deque_type static so namespace is not polluted. --- Modules/collectionsmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index 2b5cb105f05..252c5a6e410 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 */