]> granicus.if.org Git - python/commitdiff
Re-indented bytes_getbuffer() and bytes_releasebuffer() to 4-space
authorAlexandre Vassalotti <alexandre@peadrop.com>
Mon, 14 Apr 2008 20:53:13 +0000 (20:53 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Mon, 14 Apr 2008 20:53:13 +0000 (20:53 +0000)
indents.

Objects/bytesobject.c

index 66903a7dc2f8f0710061b70fc154dd42e3a134c3..e32331d138aab7ea270364a2e8b932adee5e613f 100644 (file)
@@ -52,27 +52,27 @@ _getbytevalue(PyObject* arg, int *value)
 static int
 bytes_getbuffer(PyBytesObject *obj, Py_buffer *view, int flags)
 {
-        int ret;
-        void *ptr;
-        if (view == NULL) {
-                obj->ob_exports++;
-                return 0;
-        }
-        if (obj->ob_bytes == NULL)
-                ptr = "";
-        else
-                ptr = obj->ob_bytes;
-        ret = PyBuffer_FillInfo(view, ptr, Py_SIZE(obj), 0, flags);
-        if (ret >= 0) {
-                obj->ob_exports++;
-        }
-        return ret;
+    int ret;
+    void *ptr;
+    if (view == NULL) {
+        obj->ob_exports++;
+        return 0;
+    }
+    if (obj->ob_bytes == NULL)
+        ptr = "";
+    else
+        ptr = obj->ob_bytes;
+    ret = PyBuffer_FillInfo(view, ptr, Py_SIZE(obj), 0, flags);
+    if (ret >= 0) {
+        obj->ob_exports++;
+    }
+    return ret;
 }
 
 static void
 bytes_releasebuffer(PyBytesObject *obj, Py_buffer *view)
 {
-        obj->ob_exports--;
+    obj->ob_exports--;
 }
 
 static Py_ssize_t