mirror of https://github.com/python/cpython.git
remove code which does nothing but cause refleaks
This commit is contained in:
parent
ae376e5ddc
commit
f045de4fc2
|
@ -55,15 +55,11 @@ _opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg)
|
||||||
int effect;
|
int effect;
|
||||||
int oparg_int = 0;
|
int oparg_int = 0;
|
||||||
if (HAS_ARG(opcode)) {
|
if (HAS_ARG(opcode)) {
|
||||||
PyObject *i_object;
|
|
||||||
if (oparg == Py_None) {
|
if (oparg == Py_None) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"stack_effect: opcode requires oparg but oparg was not specified");
|
"stack_effect: opcode requires oparg but oparg was not specified");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
i_object = PyNumber_Index(oparg);
|
|
||||||
if (!i_object)
|
|
||||||
return -1;
|
|
||||||
oparg_int = (int)PyLong_AsLong(oparg);
|
oparg_int = (int)PyLong_AsLong(oparg);
|
||||||
if ((oparg_int == -1) && PyErr_Occurred())
|
if ((oparg_int == -1) && PyErr_Occurred())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue