fix code formatting

This commit is contained in:
Benjamin Peterson 2010-06-09 19:45:04 +00:00
parent 094c53cf6e
commit 1056ca264f
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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);