[Python-checkins] cpython: Strip trailing spaces
victor.stinner
python-checkins at python.org
Wed Nov 9 00:02:19 CET 2011
http://hg.python.org/cpython/rev/f01123c71c57
changeset: 73468:f01123c71c57
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Nov 09 00:03:45 2011 +0100
summary:
Strip trailing spaces
files:
Objects/unicodeobject.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4338,7 +4338,7 @@
maxchar = utf8_max_char_size_and_has_errors(s, size, &unicode_size,
consumed, &has_errors);
if (has_errors)
- /* maxchar and size computation might be incorrect;
+ /* maxchar and size computation might be incorrect;
code below widens and resizes as necessary. */
unicode = PyUnicode_New(size, 127);
else
@@ -5321,8 +5321,8 @@
Py_UNICODE ch2 = (q[ihi] << 8) | q[ilo];
q += 2;
if (0xDC00 <= ch2 && ch2 <= 0xDFFF) {
- if (unicode_putchar(&unicode, &outpos,
- (((ch & 0x3FF)<<10) |
+ if (unicode_putchar(&unicode, &outpos,
+ (((ch & 0x3FF)<<10) |
(ch2 & 0x3FF)) + 0x10000) < 0)
goto onError;
continue;
@@ -7653,7 +7653,7 @@
if (targetsize == 1) {
/* 1-1 mapping */
- if (unicode_putchar(&v, &outpos,
+ if (unicode_putchar(&v, &outpos,
PyUnicode_READ_CHAR(x, 0)) < 0)
goto onError;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list