[pygobject/wip/jfelder/template-hierarchy-fix: 1/2] gimodule: Remove trailing whitespaces



commit 2dbc7572fdaf5a54c57c8a5773d1693e2f4cf1a2
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Mar 20 19:28:44 2020 +0100

    gimodule: Remove trailing 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]