[Python-checkins] cpython: unicode_subtype_new() copies also the ascii flag
victor.stinner
python-checkins at python.org
Mon Oct 3 14:51:25 CEST 2011
http://hg.python.org/cpython/rev/54d77a25736d
changeset: 72616:54d77a25736d
user: Victor Stinner <vstinner at wyplay.com>
date: Mon Oct 03 14:42:15 2011 +0200
summary:
unicode_subtype_new() copies also the ascii flag
files:
Objects/unicodeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -12846,7 +12846,7 @@
_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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list