/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.c

(jam) Start using StaticTuple as part of the btree_index parsing code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
            return NULL; /* There seems to be an error */
419
419
        }
420
420
        if (result == Py_NotImplemented) {
421
 
            PyErr_BadInternalCall();
422
421
            Py_DECREF(result);
423
 
            return NULL;
 
422
            /* One side must have had a string and the other a StaticTuple.
 
423
             * This clearly means that they are not equal.
 
424
             */
 
425
            if (op == Py_EQ) {
 
426
                Py_INCREF(Py_False);
 
427
                return Py_False;
 
428
            }
 
429
            result = PyObject_RichCompare(v_obj, w_obj, Py_EQ);
424
430
        }
425
431
        if (result == Py_False) {
426
432
            /* This entry is not identical