Commit 1056ca26 authored by Benjamin Peterson's avatar Benjamin Peterson

fix code formatting

parent 094c53cf
...@@ -733,8 +733,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields) ...@@ -733,8 +733,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
{ {
int i, result; int i, result;
PyObject *s, *l = PyTuple_New(num_fields); PyObject *s, *l = PyTuple_New(num_fields);
if (!l) return 0; if (!l)
for(i = 0; i < num_fields; i++) { return 0;
for (i = 0; i < num_fields; i++) {
s = PyString_FromString(attrs[i]); s = PyString_FromString(attrs[i]);
if (!s) { if (!s) {
Py_DECREF(l); Py_DECREF(l);
......
...@@ -527,8 +527,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields) ...@@ -527,8 +527,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
{ {
int i, result; int i, result;
PyObject *s, *l = PyTuple_New(num_fields); PyObject *s, *l = PyTuple_New(num_fields);
if (!l) return 0; if (!l)
for(i = 0; i < num_fields; i++) { return 0;
for (i = 0; i < num_fields; i++) {
s = PyString_FromString(attrs[i]); s = PyString_FromString(attrs[i]);
if (!s) { if (!s) {
Py_DECREF(l); Py_DECREF(l);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment