Changeset 391 for python/trunk/Modules/_sqlite/row.c
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Modules/_sqlite/row.c
r2 r391 1 1 /* row.c - an enhanced tuple for database rows 2 2 * 3 * Copyright (C) 2005-20 06Gerhard Häring <gh@ghaering.de>3 * Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de> 4 4 * 5 5 * This file is part of pysqlite. … … 178 178 { 179 179 if (opid != Py_EQ && opid != Py_NE) { 180 181 180 Py_INCREF(Py_NotImplemented); 181 return Py_NotImplemented; 182 182 } 183 183 if (PyType_IsSubtype(Py_TYPE(_other), &pysqlite_RowType)) { 184 185 186 187 188 189 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 } 191 191 } 192 192 Py_INCREF(Py_NotImplemented);
Note:
See TracChangeset
for help on using the changeset viewer.