mirror of https://github.com/python/cpython
fix code formatting
This commit is contained in:
parent
094c53cf6e
commit
1056ca264f
|
@ -733,8 +733,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
|
|||
{
|
||||
int i, result;
|
||||
PyObject *s, *l = PyTuple_New(num_fields);
|
||||
if (!l) return 0;
|
||||
for(i = 0; i < num_fields; i++) {
|
||||
if (!l)
|
||||
return 0;
|
||||
for (i = 0; i < num_fields; i++) {
|
||||
s = PyString_FromString(attrs[i]);
|
||||
if (!s) {
|
||||
Py_DECREF(l);
|
||||
|
|
|
@ -527,8 +527,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
|
|||
{
|
||||
int i, result;
|
||||
PyObject *s, *l = PyTuple_New(num_fields);
|
||||
if (!l) return 0;
|
||||
for(i = 0; i < num_fields; i++) {
|
||||
if (!l)
|
||||
return 0;
|
||||
for (i = 0; i < num_fields; i++) {
|
||||
s = PyString_FromString(attrs[i]);
|
||||
if (!s) {
|
||||
Py_DECREF(l);
|
||||
|
|
Loading…
Reference in New Issue