diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-02-03 14:35:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-02-03 14:35:08 (GMT) |
commit | f045de4fc221ebf376ac976a0e35d6a9a1ff06b5 (patch) | |
tree | 0279d245219fd99c108079d95dbf7f37e7555fe7 /Modules | |
parent | ae376e5ddc037825cf70adfbefeb2ac05123da52 (diff) | |
download | cpython-f045de4fc221ebf376ac976a0e35d6a9a1ff06b5.zip cpython-f045de4fc221ebf376ac976a0e35d6a9a1ff06b5.tar.gz cpython-f045de4fc221ebf376ac976a0e35d6a9a1ff06b5.tar.bz2 |
remove code which does nothing but cause refleaks
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_opcode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_opcode.c b/Modules/_opcode.c index 30eeeef..712e6eb 100644 --- a/Modules/_opcode.c +++ b/Modules/_opcode.c @@ -55,15 +55,11 @@ _opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg) int effect; int oparg_int = 0; if (HAS_ARG(opcode)) { - PyObject *i_object; if (oparg == Py_None) { PyErr_SetString(PyExc_ValueError, "stack_effect: opcode requires oparg but oparg was not specified"); return -1; } - i_object = PyNumber_Index(oparg); - if (!i_object) - return -1; oparg_int = (int)PyLong_AsLong(oparg); if ((oparg_int == -1) && PyErr_Occurred()) return -1; |