diff options
author | Victor Stinner <vstinner@wyplay.com> | 2011-10-03 12:42:15 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@wyplay.com> | 2011-10-03 12:42:15 (GMT) |
commit | 3cf4637e4e15fb79bc741be37524199ed21c64b2 (patch) | |
tree | da8261ec5225f2a971554cc3e21b0447175a43d4 | |
parent | 42dfd713331d1f36b26abb8c4d215340e59a76bf (diff) | |
download | cpython-3cf4637e4e15fb79bc741be37524199ed21c64b2.zip cpython-3cf4637e4e15fb79bc741be37524199ed21c64b2.tar.gz cpython-3cf4637e4e15fb79bc741be37524199ed21c64b2.tar.bz2 |
unicode_subtype_new() copies also the ascii flag
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 30db418..c3e1f29 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |