~ubuntu-branches/ubuntu/oneiric/python2.5/oneiric

« back to all changes in this revision

Viewing changes to Modules/_sqlite/module.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-12-21 08:57:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221085749-bijjr25h8na5jdsu
Tags: 2.5.3-0ubuntu1
* New upstream version.
* Regenerate the included documentation.
* Add an option --install-layout=deb, which is ignored for 2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
{
129
129
    PyTypeObject* type;
130
130
    PyObject* caster;
 
131
    int rc;
131
132
 
132
133
    if (!PyArg_ParseTuple(args, "OO", &type, &caster)) {
133
134
        return NULL;
134
135
    }
135
136
 
136
 
    microprotocols_add(type, (PyObject*)&SQLitePrepareProtocolType, caster);
 
137
    rc = microprotocols_add(type, (PyObject*)&SQLitePrepareProtocolType, caster);
 
138
    if (rc == -1)
 
139
        return NULL;
137
140
 
138
141
    Py_INCREF(Py_None);
139
142
    return Py_None;