]> granicus.if.org Git - python/commit
Issue #27128: Cleanup slot_sq_item()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 19 Aug 2016 16:17:37 +0000 (18:17 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 19 Aug 2016 16:17:37 +0000 (18:17 +0200)
commit018016d8e338dc99353b96df2c570bf2fd63fce2
tree4f858c2b7d5f1a4d5226bb911cf9f339ae8d2f21
parentf736c261a2094eee1529c98786c612904c067540
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
Objects/typeobject.c