[Python-checkins] cpython: Backed out changeset 952d91a7d376
victor.stinner
python-checkins at python.org
Wed Oct 12 00:53:52 CEST 2011
http://hg.python.org/cpython/rev/2abd48a47f3b
changeset: 72878:2abd48a47f3b
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Oct 12 00:54:35 2011 +0200
summary:
Backed out changeset 952d91a7d376
If maxchar == PyUnicode_MAX_CHAR_VALUE(unicode), we do an useless copy.
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
@@ -1837,7 +1837,7 @@
}
}
}
- assert(max_char <= PyUnicode_MAX_CHAR_VALUE(unicode));
+ assert(max_char < PyUnicode_MAX_CHAR_VALUE(unicode));
copy = PyUnicode_New(len, max_char);
copy_characters(copy, 0, unicode, 0, len);
Py_DECREF(unicode);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list