mirror of
https://github.com/python/cpython.git
synced 2025-10-16 03:40:58 +00:00
Fix a mis-indentation in _PyUnicode_New() that caused me to stare at
some code for longer than needed.
This commit is contained in:
parent
8fcd4b5ab3
commit
ad98db1d9e
1 changed files with 3 additions and 3 deletions
|
@ -183,10 +183,10 @@ PyUnicodeObject *_PyUnicode_New(int length)
|
||||||
goto onError;
|
goto onError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unicode->str = PyMem_NEW(Py_UNICODE, length + 1);
|
unicode->str = PyMem_NEW(Py_UNICODE, length + 1);
|
||||||
}
|
}
|
||||||
PyObject_INIT(unicode, &PyUnicode_Type);
|
PyObject_INIT(unicode, &PyUnicode_Type);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unicode = PyObject_NEW(PyUnicodeObject, &PyUnicode_Type);
|
unicode = PyObject_NEW(PyUnicodeObject, &PyUnicode_Type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue