cpython: 2d2bc1906b5b (original) (raw)

Mercurial > cpython

changeset 102774:2d2bc1906b5b

Issue #27128: Cleanup slot_sq_item() * Invert condition of test to avoid levels of indentation * Remove useless Py_XDECREF(args) in the error block * Replace Py_XDECREF(func) with Py_DECREF(func) in the error block: func cannot be NULL when reaching the error block [#27128]

Victor Stinner victor.stinner@gmail.com
date Fri, 19 Aug 2016 18:17:37 +0200
parents 8e085070ab28
children 6eb586b85fa1
files Objects/typeobject.c
diffstat 1 files changed, 34 insertions(+), 26 deletions(-)[+] [-] Objects/typeobject.c 60

line wrap: on

line diff

--- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5808,38 +5808,46 @@ slot_sq_length(PyObject *self) static PyObject * slot_sq_item(PyObject *self, Py_ssize_t i) {

+

+

+

+

+ +error: