mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Merge 3.5
This commit is contained in:
commit
5b96f17b1c
@ -911,6 +911,8 @@ resize_compact(PyObject *unicode, Py_ssize_t length)
|
||||
else if (_PyUnicode_HAS_WSTR_MEMORY(unicode)) {
|
||||
PyObject_DEL(_PyUnicode_WSTR(unicode));
|
||||
_PyUnicode_WSTR(unicode) = NULL;
|
||||
if (!PyUnicode_IS_ASCII(unicode))
|
||||
_PyUnicode_WSTR_LENGTH(unicode) = 0;
|
||||
}
|
||||
#ifdef Py_DEBUG
|
||||
unicode_fill_invalid(unicode, old_length);
|
||||
|
Loading…
Reference in New Issue
Block a user