mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
fix code formatting
This commit is contained in:
parent
094c53cf6e
commit
1056ca264f
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue