]> granicus.if.org Git - python/commitdiff
Fix whitespace.
authorWalter Dörwald <walter@livinglogic.de>
Mon, 25 Mar 2002 11:16:18 +0000 (11:16 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 25 Mar 2002 11:16:18 +0000 (11:16 +0000)
Objects/unicodeobject.c

index 73d5d9de0cca76fab94ddf9f560709fa3738d19f..96cc5f475f31e82b60f0000db466308061b849c8 100644 (file)
@@ -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,