mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
unicode_subtype_new() copies also the ascii flag
This commit is contained in:
parent
42dfd71333
commit
3cf4637e4e
1 changed files with 1 additions and 1 deletions
|
@ -12846,7 +12846,7 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
_PyUnicode_STATE(self).interned = 0;
|
||||
_PyUnicode_STATE(self).kind = kind;
|
||||
_PyUnicode_STATE(self).compact = 0;
|
||||
_PyUnicode_STATE(self).ascii = 0;
|
||||
_PyUnicode_STATE(self).ascii = _PyUnicode_STATE(unicode).ascii;
|
||||
_PyUnicode_STATE(self).ready = 1;
|
||||
_PyUnicode_WSTR(self) = NULL;
|
||||
_PyUnicode_UTF8_LENGTH(self) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue