summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-03-25 11:16:18 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-03-25 11:16:18 (GMT)
commit8c077227f217478af580c6d11d484746cea8c63c (patch)
tree31e623904c80c05fdf08fa6b4e06838862697ad6 /Objects/unicodeobject.c
parent4843eb400b4fa52c5ddc52d180819bdddeda005d (diff)
downloadcpython-8c077227f217478af580c6d11d484746cea8c63c.zip
cpython-8c077227f217478af580c6d11d484746cea8c63c.tar.gz
cpython-8c077227f217478af580c6d11d484746cea8c63c.tar.bz2
Fix whitespace.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 73d5d9d..96cc5f4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1643,10 +1643,10 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
chr += 10 + c - 'A';
}
s += i;
- if (chr == 0xffffffff)
- /* _decoding_error will have already written into the
- target buffer. */
- break;
+ if (chr == 0xffffffff)
+ /* _decoding_error will have already written into the
+ target buffer. */
+ break;
store:
/* when we get here, chr is a 32-bit unicode character */
if (chr <= 0xffff)
@@ -1654,7 +1654,7 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
*p++ = (Py_UNICODE) chr;
else if (chr <= 0x10ffff) {
/* UCS-4 character. Either store directly, or as
- surrogate pair. */
+ surrogate pair. */
#ifdef Py_UNICODE_WIDE
*p++ = chr;
#else
@@ -1707,21 +1707,21 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
break;
default:
- if (s > end) {
- if (unicodeescape_decoding_error(&p, errors, "\\ at end of string"))
- goto onError;
- }
- else {
- *p++ = '\\';
- *p++ = (unsigned char)s[-1];
- }
+ if (s > end) {
+ if (unicodeescape_decoding_error(&p, errors, "\\ at end of string"))
+ goto onError;
+ }
+ else {
+ *p++ = '\\';
+ *p++ = (unsigned char)s[-1];
+ }
break;
}
}
if (_PyUnicode_Resize(&v, (int)(p - buf)))
- goto onError;
+ goto onError;
return (PyObject *)v;
-
+
ucnhashError:
PyErr_SetString(
PyExc_UnicodeError,