Make deque_type static so namespace is not polluted.
This commit is contained in:
parent
9a8d55e4a1
commit
87f10137bf
|
@ -34,7 +34,7 @@ typedef struct {
|
||||||
int len;
|
int len;
|
||||||
} dequeobject;
|
} dequeobject;
|
||||||
|
|
||||||
PyTypeObject deque_type;
|
static PyTypeObject deque_type;
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
|
@ -641,7 +641,7 @@ PyDoc_STRVAR(deque_doc,
|
||||||
\n\
|
\n\
|
||||||
Build an ordered collection accessible from endpoints only.");
|
Build an ordered collection accessible from endpoints only.");
|
||||||
|
|
||||||
PyTypeObject deque_type = {
|
static PyTypeObject deque_type = {
|
||||||
PyObject_HEAD_INIT(NULL)
|
PyObject_HEAD_INIT(NULL)
|
||||||
0, /* ob_size */
|
0, /* ob_size */
|
||||||
"collections.deque", /* tp_name */
|
"collections.deque", /* tp_name */
|
||||||
|
|
Loading…
Reference in New Issue