mirror of https://github.com/python/cpython
Fix indentation
This commit is contained in:
parent
37784ba5c0
commit
4b3c7846c9
|
@ -103,27 +103,27 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
if (min_len != max_len) {
|
if (min_len != max_len) {
|
||||||
if (len < min_len) {
|
if (len < min_len) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"%.500s() takes an at least %zd-sequence (%zd-sequence given)",
|
"%.500s() takes an at least %zd-sequence (%zd-sequence given)",
|
||||||
type->tp_name, min_len, len);
|
type->tp_name, min_len, len);
|
||||||
Py_DECREF(arg);
|
Py_DECREF(arg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len > max_len) {
|
if (len > max_len) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"%.500s() takes an at most %zd-sequence (%zd-sequence given)",
|
"%.500s() takes an at most %zd-sequence (%zd-sequence given)",
|
||||||
type->tp_name, max_len, len);
|
type->tp_name, max_len, len);
|
||||||
Py_DECREF(arg);
|
Py_DECREF(arg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (len != min_len) {
|
if (len != min_len) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"%.500s() takes a %zd-sequence (%zd-sequence given)",
|
"%.500s() takes a %zd-sequence (%zd-sequence given)",
|
||||||
type->tp_name, min_len, len);
|
type->tp_name, min_len, len);
|
||||||
Py_DECREF(arg);
|
Py_DECREF(arg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue