if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Module");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Interactive");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &body, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Expression");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Suite");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &lineno, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"lineno\" missing from stmt");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &col_offset, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"col_offset\" missing from stmt");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &name, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"name\" missing from FunctionDef");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_arguments(tmp, &args, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"args\" missing from FunctionDef");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from FunctionDef");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(decorator_list, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"decorator_list\" missing from FunctionDef");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &returns, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
returns = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &name, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"name\" missing from ClassDef");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(bases, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"bases\" missing from ClassDef");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(keywords, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"keywords\" missing from ClassDef");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &starargs, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
starargs = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &kwargs, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
kwargs = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from ClassDef");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(decorator_list, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"decorator_list\" missing from ClassDef");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
value = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(targets, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"targets\" missing from Delete");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(targets, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"targets\" missing from Assign");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Assign");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &target, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"target\" missing from AugAssign");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_operator(tmp, &op, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"op\" missing from AugAssign");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from AugAssign");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &target, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"target\" missing from For");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &iter, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"iter\" missing from For");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from For");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(orelse, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from For");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &test, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"test\" missing from While");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from While");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(orelse, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from While");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &test, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"test\" missing from If");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from If");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(orelse, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from If");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(items, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"items\" missing from With");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from With");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &exc, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
exc = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &cause, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
cause = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Try");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(handlers, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"handlers\" missing from Try");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(orelse, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from Try");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(finalbody, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"finalbody\" missing from Try");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &test, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"test\" missing from Assert");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &msg, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
msg = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(names, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"names\" missing from Import");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &module, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
module = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(names, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"names\" missing from ImportFrom");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &level, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
level = 0;
}
if (res != 0) goto failed;
asdl_seq_SET(names, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"names\" missing from Global");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(names, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"names\" missing from Nonlocal");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Expr");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &lineno, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"lineno\" missing from expr");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &col_offset, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"col_offset\" missing from expr");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_boolop(tmp, &op, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"op\" missing from BoolOp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(values, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"values\" missing from BoolOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &left, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"left\" missing from BinOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_operator(tmp, &op, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"op\" missing from BinOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &right, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"right\" missing from BinOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_unaryop(tmp, &op, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"op\" missing from UnaryOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &operand, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"operand\" missing from UnaryOp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_arguments(tmp, &args, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"args\" missing from Lambda");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &body, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from Lambda");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &test, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"test\" missing from IfExp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &body, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from IfExp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &orelse, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from IfExp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(keys, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"keys\" missing from Dict");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(values, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"values\" missing from Dict");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(elts, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from Set");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &elt, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elt\" missing from ListComp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(generators, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"generators\" missing from ListComp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &elt, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elt\" missing from SetComp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(generators, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"generators\" missing from SetComp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &key, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"key\" missing from DictComp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from DictComp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(generators, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"generators\" missing from DictComp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &elt, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elt\" missing from GeneratorExp");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(generators, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"generators\" missing from GeneratorExp");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
value = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from YieldFrom");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &left, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"left\" missing from Compare");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(ops, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ops\" missing from Compare");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(comparators, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"comparators\" missing from Compare");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &func, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"func\" missing from Call");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(args, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"args\" missing from Call");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(keywords, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"keywords\" missing from Call");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &starargs, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
starargs = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &kwargs, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
kwargs = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_object(tmp, &n, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"n\" missing from Num");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_string(tmp, &s, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"s\" missing from Str");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_bytes(tmp, &s, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"s\" missing from Bytes");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Attribute");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &attr, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"attr\" missing from Attribute");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Attribute");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Subscript");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_slice(tmp, &slice, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"slice\" missing from Subscript");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Subscript");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Starred");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Starred");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &id, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"id\" missing from Name");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Name");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(elts, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from List");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from List");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(elts, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from Tuple");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr_context(tmp, &ctx, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Tuple");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &lower, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
lower = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &upper, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
upper = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &step, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
step = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(dims, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"dims\" missing from ExtSlice");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Index");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &target, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"target\" missing from comprehension");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &iter, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"iter\" missing from comprehension");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(ifs, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"ifs\" missing from comprehension");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &lineno, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"lineno\" missing from excepthandler");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_int(tmp, &col_offset, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"col_offset\" missing from excepthandler");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &type, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
type = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &name, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
name = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(body, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from ExceptHandler");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(args, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"args\" missing from arguments");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &vararg, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
vararg = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &varargannotation, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
varargannotation = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(kwonlyargs, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"kwonlyargs\" missing from arguments");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &kwarg, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
kwarg = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &kwargannotation, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
kwargannotation = NULL;
}
if (res != 0) goto failed;
asdl_seq_SET(defaults, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"defaults\" missing from arguments");
return 1;
if (res != 0) goto failed;
asdl_seq_SET(kw_defaults, i, value);
}
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"kw_defaults\" missing from arguments");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &arg, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"arg\" missing from arg");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &annotation, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
annotation = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &arg, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"arg\" missing from keyword");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &value, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from keyword");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &name, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"name\" missing from alias");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_identifier(tmp, &asname, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
asname = NULL;
}
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &context_expr, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
PyErr_SetString(PyExc_TypeError, "required field \"context_expr\" missing from withitem");
return 1;
if (tmp == NULL) goto failed;
res = obj2ast_expr(tmp, &optional_vars, arena);
if (res != 0) goto failed;
- Py_XDECREF(tmp);
- tmp = NULL;
+ Py_CLEAR(tmp);
} else {
optional_vars = NULL;
}