[Python-checkins] cpython: Fix some formatting

eli.bendersky python-checkins at python.org
Wed Mar 6 14:46:43 CET 2013


http://hg.python.org/cpython/rev/800875963e42
changeset:   82510:800875963e42
user:        Eli Bendersky <eliben at gmail.com>
date:        Wed Mar 06 05:45:57 2013 -0800
summary:
  Fix some formatting

files:
  Modules/_ctypes/callproc.c |  22 +++++++++++-----------
  1 files changed, 11 insertions(+), 11 deletions(-)


diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -1078,9 +1078,10 @@
         args[0].ffi_type = &ffi_type_pointer;
         args[0].value.p = pIunk;
         pa = &args[1];
-    } else
+    } else {
 #endif
         pa = &args[0];
+    }
 
     /* Convert the arguments */
     for (i = 0; i < n; ++i, ++pa) {
@@ -1096,9 +1097,7 @@
         if (argtypes && argtype_count > i) {
             PyObject *v;
             converter = PyTuple_GET_ITEM(argtypes, i);
-            v = PyObject_CallFunctionObjArgs(converter,
-                                               arg,
-                                               NULL);
+            v = PyObject_CallFunctionObjArgs(converter, arg, NULL);
             if (v == NULL) {
                 _ctypes_extend_error(PyExc_ArgError, "argument %d: ", i+1);
                 goto cleanup;
@@ -1175,9 +1174,10 @@
             retval = PyErr_SetFromWindowsErr(*(int *)resbuf);
         else
             retval = PyLong_FromLong(*(int *)resbuf);
-    } else
+    } else {
 #endif
         retval = GetResult(restype, resbuf, checker);
+    }
   cleanup:
     for (i = 0; i < argcount; ++i)
         Py_XDECREF(args[i].keep);
@@ -1313,9 +1313,9 @@
                         NULL,
 #endif
                         FUNCFLAG_HRESULT, /* flags */
-                argtypes, /* self->argtypes */
-                NULL, /* self->restype */
-                NULL); /* checker */
+                        argtypes, /* self->argtypes */
+                        NULL, /* self->restype */
+                        NULL); /* checker */
     return result;
 }
 
@@ -1480,9 +1480,9 @@
                         NULL,
 #endif
                         FUNCFLAG_CDECL, /* flags */
-                NULL, /* self->argtypes */
-                NULL, /* self->restype */
-                NULL); /* checker */
+                        NULL, /* self->argtypes */
+                        NULL, /* self->restype */
+                        NULL); /* checker */
     return result;
 }
 

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


More information about the Python-checkins mailing list