diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:59:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:59:06 (GMT) |
commit | ab595943268eebef43e71e2b79e58382c28bca70 (patch) | |
tree | c62bbea11e6683710fcf651e43c1609769517601 /Objects | |
parent | 1f33f2b0c381337d5991c227652d65eadd168209 (diff) | |
download | cpython-ab595943268eebef43e71e2b79e58382c28bca70.zip cpython-ab595943268eebef43e71e2b79e58382c28bca70.tar.gz cpython-ab595943268eebef43e71e2b79e58382c28bca70.tar.bz2 |
What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2fea30b..aeccfe4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |