[Python-checkins] Fix 5-space indentation and trailing whitespace (GH-18311)

Mark Dickinson webhook-mailer at python.org
Sun Feb 2 06:37:20 EST 2020


https://github.com/python/cpython/commit/be8147bdc6111a225ec284a4514277304726c3d0
commit: be8147bdc6111a225ec284a4514277304726c3d0
branch: master
author: Mark Dickinson <mdickinson at enthought.com>
committer: GitHub <noreply at github.com>
date: 2020-02-02T11:37:02Z
summary:

Fix 5-space indentation and trailing whitespace (GH-18311)

files:
M Objects/floatobject.c

diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 89f60b65cd55c..ab486d4ee3d2e 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -641,7 +641,7 @@ _float_div_mod(double vx, double wx, double *floordiv, double *mod)
         *floordiv = floor(div);
         if (div - *floordiv > 0.5) {
             *floordiv += 1.0;
-        }       
+        }
     }
     else {
         /* div is zero - get the same sign as the true quotient */
@@ -652,16 +652,16 @@ _float_div_mod(double vx, double wx, double *floordiv, double *mod)
 static PyObject *
 float_divmod(PyObject *v, PyObject *w)
 {
-     double vx, wx;
-     double mod, floordiv;
-     CONVERT_TO_DOUBLE(v, vx);
-     CONVERT_TO_DOUBLE(w, wx);
-     if (wx == 0.0) {
-         PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()");
-         return NULL;
-     }
-     _float_div_mod(vx, wx, &floordiv, &mod);
-     return Py_BuildValue("(dd)", floordiv, mod);
+    double vx, wx;
+    double mod, floordiv;
+    CONVERT_TO_DOUBLE(v, vx);
+    CONVERT_TO_DOUBLE(w, wx);
+    if (wx == 0.0) {
+        PyErr_SetString(PyExc_ZeroDivisionError, "float divmod()");
+        return NULL;
+    }
+    _float_div_mod(vx, wx, &floordiv, &mod);
+    return Py_BuildValue("(dd)", floordiv, mod);
 }
 
 static PyObject *



More information about the Python-checkins mailing list