mirror of
https://github.com/python/cpython.git
synced 2026-04-15 00:00:57 +00:00
gh-146175: Soft-deprecate outdated macros; convert internal usage (GH-146178)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
90f9991abb
commit
91cd2e5806
16 changed files with 160 additions and 47 deletions
|
|
@ -2760,11 +2760,9 @@ array_buffer_getbuf(PyObject *op, Py_buffer *view, int flags)
|
|||
view->internal = NULL;
|
||||
if ((flags & PyBUF_FORMAT) == PyBUF_FORMAT) {
|
||||
view->format = (char *)self->ob_descr->formats;
|
||||
#ifdef Py_UNICODE_WIDE
|
||||
if (self->ob_descr->typecode == 'u') {
|
||||
if (sizeof(wchar_t) >= 4 && self->ob_descr->typecode == 'u') {
|
||||
view->format = "w";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
self->ob_exports++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue