summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-04 15:27:50 +0000
committerGuido van Rossum <guido@python.org>1998-08-04 15:27:50 +0000
commit5053efc2c4e5dda0c89c9589315111c89db6288b (patch)
tree673589a845ca1068eb0b7c7c28690717a4ac2ca4 /Python/ceval.c
parentc96417980cb700555255acfa70358c46c1a6e061 (diff)
downloadcpython-git-5053efc2c4e5dda0c89c9589315111c89db6288b.tar.gz
In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and
get rid of redundant error check.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4331786aa7..ff5ee509f6 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1360,9 +1360,7 @@ eval_code2(co, globals, locals,
if (x != NULL) {
for (; --oparg >= 0;) {
w = POP();
- err = PyList_SetItem(x, oparg, w);
- if (err != 0)
- break;
+ PyList_SET_ITEM(x, oparg, w);
}
PUSH(x);
continue;