[pygobject/wip/jfelder/template-hierarchy-fix: 2/3] gimodule: Remove empty whitespaces



commit 7cfae9af548ce9ab2b273d673a18df62f86e0e93
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Mar 19 22:07:08 2020 +0100

    gimodule: Remove empty whitespaces

 gi/gimodule.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gi/gimodule.c b/gi/gimodule.c
index cf3c5ea2..1b997617 100644
--- a/gi/gimodule.c
+++ b/gi/gimodule.c
@@ -1932,7 +1932,7 @@ pyg_channel_read(PyObject* self, PyObject *args, PyObject *kwargs)
         PyErr_SetString(PyExc_TypeError, "first argument is not a GLib.IOChannel");
         return NULL;
     }
-       
+
     if (max_count == 0)
         return PYGLIB_PyBytes_FromString("");
 
@@ -1943,15 +1943,15 @@ pyg_channel_read(PyObject* self, PyObject *args, PyObject *kwargs)
        gsize single_read;
        char* buf;
        gsize buf_size;
-       
-       if (max_count == -1) 
+
+       if (max_count == -1)
            buf_size = CHUNK_SIZE;
        else {
            buf_size = max_count - total_read;
            if (buf_size > CHUNK_SIZE)
                buf_size = CHUNK_SIZE;
         }
-       
+
        if ( ret_obj == NULL ) {
            ret_obj = PYGLIB_PyBytes_FromStringAndSize((char *)NULL, buf_size);
            if (ret_obj == NULL)
@@ -1961,7 +1961,7 @@ pyg_channel_read(PyObject* self, PyObject *args, PyObject *kwargs)
            if (PYGLIB_PyBytes_Resize(&ret_obj, buf_size + total_read) == -1)
                goto failure;
        }
-       
+
         buf = PYGLIB_PyBytes_AsString(ret_obj) + total_read;
 
         Py_BEGIN_ALLOW_THREADS;
@@ -1970,10 +1970,10 @@ pyg_channel_read(PyObject* self, PyObject *args, PyObject *kwargs)
 
         if (pygi_error_check (&error))
            goto failure;
-       
+
        total_read += single_read;
     }
-       
+
     if ( total_read != (gsize)PYGLIB_PyBytes_Size(ret_obj) ) {
        if (PYGLIB_PyBytes_Resize(&ret_obj, total_read) == -1)
            goto failure;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]