~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.c

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-15 18:02:24 UTC
  • mfrom: (4747.1.1 2.1-not-static-initializer)
  • Revision ID: pqm@pqm.ubuntu.com-20091015180224-g9dphv661law8y20
(jam) Tweak the initialization of StaticTuple_Type for Windows +
        python 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
604
604
    (hashfunc)StaticTuple_hash,                  /* tp_hash */
605
605
    0,                                           /* tp_call */
606
606
    0,                                           /* tp_str */
607
 
    PyObject_GenericGetAttr,                     /* tp_getattro */
 
607
    0,                                           /* tp_getattro */
608
608
    0,                                           /* tp_setattro */
609
609
    0,                                           /* tp_as_buffer */
610
610
    Py_TPFLAGS_DEFAULT,                          /* tp_flags*/
739
739
{
740
740
    PyObject* m;
741
741
 
 
742
    StaticTuple_Type.tp_getattro = PyObject_GenericGetAttr;
742
743
    if (PyType_Ready(&StaticTuple_Type) < 0)
743
744
        return;
744
745