]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a mis-indentation in _PyUnicode_New() that caused me to stare at
authorGuido van Rossum <guido@python.org>
Thu, 14 Jun 2001 17:52:02 +0000 (17:52 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Jun 2001 17:52:02 +0000 (17:52 +0000)
some code for longer than needed.

Objects/unicodeobject.c

index 3b4347b44450701a61b508181eea9abbdd742ea8..4bb8fb2d9f9c89c2c18e5cf606906b187dcecf9a 100644 (file)
@@ -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);