~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.c

  • Committer: Matt Nordhoff
  • Date: 2009-10-21 17:54:33 UTC
  • mto: This revision was merged to the branch mainline in revision 4768.
  • Revision ID: mnordhoff@mattnordhoff.com-20091021175433-qxa3fvplnw67aynk
Review: Add a Py_INCREF, and test pickling a nested StaticTuple.

Show diffs side-by-side

added added

removed removed

Lines of Context:
587
587
        Py_DECREF(result);
588
588
        return NULL;
589
589
    }
 
590
    Py_INCREF(&StaticTuple_Type);
590
591
    PyTuple_SET_ITEM(result, 0, (PyObject *)&StaticTuple_Type);
591
592
    PyTuple_SET_ITEM(result, 1, as_tuple);
592
593
    return result;