Commit 6ad9cb96 authored by Guido van Rossum's avatar Guido van Rossum

Fix a mis-indentation in _PyUnicode_New() that caused me to stare at

some code for longer than needed.
parent 36e0ebcf
...@@ -183,10 +183,10 @@ PyUnicodeObject *_PyUnicode_New(int length) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment