summaryrefslogtreecommitdiff
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-09 19:45:04 +0000
committerBenjamin Peterson <benjamin@python.org>2010-06-09 19:45:04 +0000
commitee131c01e184dbff6fada7e1f7d13183a969f2a8 (patch)
treedbe4dafbb22534c14749f50d1baad8b9a8d447c7 /Parser/asdl_c.py
parent9d2a3d9963f68595a48c57e793ea702b4f2905fd (diff)
downloadcpython-ee131c01e184dbff6fada7e1f7d13183a969f2a8.tar.gz
fix code formatting
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 1508e839fe..634ad29bc5 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -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);