summaryrefslogtreecommitdiffstats
path: root/Modules/_csv.c
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 06:46:50 (GMT)
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 06:46:50 (GMT)
commitdd3e6cb21318b3889bab4ffb07c545a3b03ad636 (patch)
treedd23a8ae2f81b17c2ce2bec36745e5571b56e6ab /Modules/_csv.c
parent1196cf185ca4e5a74edc65f4b1e46cb60ff645a3 (diff)
downloadcpython-dd3e6cb21318b3889bab4ffb07c545a3b03ad636.zip
cpython-dd3e6cb21318b3889bab4ffb07c545a3b03ad636.tar.gz
cpython-dd3e6cb21318b3889bab4ffb07c545a3b03ad636.tar.bz2
Fix to use PEP7 brace style.
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r--Modules/_csv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index c47e9d6..893a273 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -238,7 +238,8 @@ _set_str(const char *name, PyObject **target, PyObject *src, const char *dflt)
PyErr_Format(PyExc_TypeError,
"\"%s\" must be an string", name);
return -1;
- } else {
+ }
+ else {
Py_XDECREF(*target);
Py_INCREF(src);
*target = src;
@@ -1025,7 +1026,8 @@ join_append_data(WriterObj *self, char *field, int quote_empty,
PyErr_Format(error_obj,
"single empty field record must be quoted");
return -1;
- } else
+ }
+ else
*quoted = 1;
}