From ad98db1d9e15df8cda494fffec68f9cf59ed073f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 14 Jun 2001 17:52:02 +0000 Subject: [PATCH] Fix a mis-indentation in _PyUnicode_New() that caused me to stare at some code for longer than needed. --- Objects/unicodeobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3b4347b4445..4bb8fb2d9f9 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -183,10 +183,10 @@ PyUnicodeObject *_PyUnicode_New(int length) goto onError; } } - else { + else { unicode->str = PyMem_NEW(Py_UNICODE, length + 1); - } - PyObject_INIT(unicode, &PyUnicode_Type); + } + PyObject_INIT(unicode, &PyUnicode_Type); } else { unicode = PyObject_NEW(PyUnicodeObject, &PyUnicode_Type);