summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-09 19:45:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-09 19:45:04 (GMT)
commit1056ca264f97e42ffafe8451720ca59147a3134c (patch)
tree0bceb422649f30c26e3415595f0185f9e0ae96e8 /Python
parent094c53cf6e0bfff53f8c9f9c7befc1911bb65ea6 (diff)
downloadcpython-1056ca264f97e42ffafe8451720ca59147a3134c.zip
cpython-1056ca264f97e42ffafe8451720ca59147a3134c.tar.gz
cpython-1056ca264f97e42ffafe8451720ca59147a3134c.tar.bz2
fix code formatting
Diffstat (limited to 'Python')
-rw-r--r--Python/Python-ast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 6b3424a..9a93bf3 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -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);