[Python-checkins] cpython: remove code which does nothing but cause refleaks
benjamin.peterson
python-checkins at python.org
Mon Feb 3 15:35:15 CET 2014
http://hg.python.org/cpython/rev/c45a10b93a56
changeset: 88926:c45a10b93a56
user: Benjamin Peterson <benjamin at python.org>
date: Mon Feb 03 09:35:08 2014 -0500
summary:
remove code which does nothing but cause refleaks
files:
Modules/_opcode.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Modules/_opcode.c b/Modules/_opcode.c
--- a/Modules/_opcode.c
+++ b/Modules/_opcode.c
@@ -55,15 +55,11 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list