diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2004-02-29 15:40:53 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2004-02-29 15:40:53 +0000 |
| commit | cf71f0d6bb74e5725398a655632986b0ca0cd2fa (patch) | |
| tree | 49d9312ea7be2b0d7a2f88b37804221f535a1e69 /Modules/collectionsmodule.c | |
| parent | 170b0209ecad971c893f18b0954d372a32c2848e (diff) | |
| download | cpython-cf71f0d6bb74e5725398a655632986b0ca0cd2fa.tar.gz | |
Make deque_type static so namespace is not polluted.
Diffstat (limited to 'Modules/collectionsmodule.c')
| -rw-r--r-- | Modules/collectionsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index 2b5cb105f0..252c5a6e41 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 */ |
