mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
This commit is contained in:
parent
1f33f2b0c3
commit
ab59594326
2 changed files with 5 additions and 0 deletions
|
@ -7042,6 +7042,7 @@ decode_code_page_strict(UINT code_page,
|
|||
|
||||
if (*v == NULL) {
|
||||
/* Create unicode object */
|
||||
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
|
||||
*v = (PyObject*)_PyUnicode_New(outsize);
|
||||
if (*v == NULL)
|
||||
return -1;
|
||||
|
@ -7122,6 +7123,7 @@ decode_code_page_errors(UINT code_page,
|
|||
PyErr_NoMemory();
|
||||
goto error;
|
||||
}
|
||||
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
|
||||
*v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer));
|
||||
if (*v == NULL)
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue