Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Modules/_sqlite/row.c

    r2 r391  
    11/* row.c - an enhanced tuple for database rows
    22 *
    3  * Copyright (C) 2005-2006 Gerhard Häring <gh@ghaering.de>
     3 * Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>
    44 *
    55 * This file is part of pysqlite.
     
    178178{
    179179    if (opid != Py_EQ && opid != Py_NE) {
    180         Py_INCREF(Py_NotImplemented);
    181         return Py_NotImplemented;
     180        Py_INCREF(Py_NotImplemented);
     181        return Py_NotImplemented;
    182182    }
    183183    if (PyType_IsSubtype(Py_TYPE(_other), &pysqlite_RowType)) {
    184         pysqlite_Row *other = (pysqlite_Row *)_other;
    185         PyObject *res = PyObject_RichCompare(self->description, other->description, opid);
    186         if ((opid == Py_EQ && res == Py_True)
    187             || (opid == Py_NE && res == Py_False)) {
    188             Py_DECREF(res);
    189             return PyObject_RichCompare(self->data, other->data, opid);
    190         }
     184        pysqlite_Row *other = (pysqlite_Row *)_other;
     185        PyObject *res = PyObject_RichCompare(self->description, other->description, opid);
     186        if ((opid == Py_EQ && res == Py_True)
     187            || (opid == Py_NE && res == Py_False)) {
     188            Py_DECREF(res);
     189            return PyObject_RichCompare(self->data, other->data, opid);
     190        }
    191191    }
    192192    Py_INCREF(Py_NotImplemented);
Note: See TracChangeset for help on using the changeset viewer.