Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 62216:5bf7336ea0aa legacy-trunk
fix code formatting
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Wed, 09 Jun 2010 19:45:04 +0000 |
| parents | 8a5ac9ff5057 |
| children | f78fcb1b23f5 |
comparison
equal
deleted
inserted
replaced
| 62212:329c129e07b6 | 62216:5bf7336ea0aa |
|---|---|
| 525 | 525 |
| 526 static int add_attributes(PyTypeObject* type, char**attrs, int num_fields) | 526 static int add_attributes(PyTypeObject* type, char**attrs, int num_fields) |
| 527 { | 527 { |
| 528 int i, result; | 528 int i, result; |
| 529 PyObject *s, *l = PyTuple_New(num_fields); | 529 PyObject *s, *l = PyTuple_New(num_fields); |
| 530 if (!l) return 0; | 530 if (!l) |
| 531 for(i = 0; i < num_fields; i++) { | 531 return 0; |
| 532 for (i = 0; i < num_fields; i++) { | |
| 532 s = PyString_FromString(attrs[i]); | 533 s = PyString_FromString(attrs[i]); |
| 533 if (!s) { | 534 if (!s) { |
| 534 Py_DECREF(l); | 535 Py_DECREF(l); |
| 535 return 0; | 536 return 0; |
| 536 } | 537 } |
