summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-06-14 17:52:02 (GMT)
committerGuido van Rossum <guido@python.org>2001-06-14 17:52:02 (GMT)
commitad98db1d9e15df8cda494fffec68f9cf59ed073f (patch)
tree3723fe65ae0f1e1adf7d6f50625fdc2e01fcee90 /Objects
parent8fcd4b5ab3668b3ff9e70ef9bf43fff2f7793271 (diff)
downloadcpython-ad98db1d9e15df8cda494fffec68f9cf59ed073f.zip
cpython-ad98db1d9e15df8cda494fffec68f9cf59ed073f.tar.gz
cpython-ad98db1d9e15df8cda494fffec68f9cf59ed073f.tar.bz2
Fix a mis-indentation in _PyUnicode_New() that caused me to stare at
some code for longer than needed.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3b4347b..4bb8fb2 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);