[Python-checkins] cpython: 4 space indentation

benjamin.peterson python-checkins at python.org
Wed Dec 21 18:22:35 CET 2011


http://hg.python.org/cpython/rev/56b70a81eee7
changeset:   74119:56b70a81eee7
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Dec 20 17:24:05 2011 -0600
summary:
  4 space indentation

files:
  Objects/unicodeobject.c |  26 +++++++++++++-------------
  1 files changed, 13 insertions(+), 13 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10095,19 +10095,19 @@
 anylib_count(int kind, PyObject *sstr, void* sbuf, Py_ssize_t slen,
              PyObject *str1, void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
 {
-        switch (kind) {
-        case PyUnicode_1BYTE_KIND:
-            if (PyUnicode_IS_ASCII(sstr) && PyUnicode_IS_ASCII(str1))
-                return asciilib_count(sbuf, slen, buf1, len1, maxcount);
-            else
-                return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
-        case PyUnicode_2BYTE_KIND:
-            return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
-        case PyUnicode_4BYTE_KIND:
-            return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
-        }
-        assert(0);
-        return 0;
+    switch (kind) {
+    case PyUnicode_1BYTE_KIND:
+        if (PyUnicode_IS_ASCII(sstr) && PyUnicode_IS_ASCII(str1))
+            return asciilib_count(sbuf, slen, buf1, len1, maxcount);
+        else
+            return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
+    case PyUnicode_2BYTE_KIND:
+        return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
+    case PyUnicode_4BYTE_KIND:
+        return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
+    }
+    assert(0);
+    return 0;
 }
 
 static PyObject *

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list