mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix to use PEP7 brace style.
This commit is contained in:
parent
1196cf185c
commit
dd3e6cb213
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue