]> granicus.if.org Git - python/commitdiff
Neaten-up a bit.
authorRaymond Hettinger <python@rcn.com>
Sat, 2 Feb 2008 05:24:44 +0000 (05:24 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 2 Feb 2008 05:24:44 +0000 (05:24 +0000)
Modules/mathmodule.c

index cdc305710349185d3bd167be1754f52e94d69ba4..63a2cca044b85505bcd21e464f867f6b0a23cbef 100644 (file)
@@ -157,17 +157,13 @@ FUNC1(tanh, tanh,
 static PyObject *
 math_trunc(PyObject *self, PyObject *number)
 {
-        /* XXX: The py3k branch gets better errors for this by using
-           _PyType_Lookup(), but since float's mro isn't set in py2.6,
-           we just use PyObject_CallMethod here. */
        return PyObject_CallMethod(number, "__trunc__", NULL);
 }
 
 PyDoc_STRVAR(math_trunc_doc,
 "trunc(x:Real) -> Integral\n"
 "\n"
-"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic"
-"method.");
+"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method.");
 
 static PyObject *
 math_frexp(PyObject *self, PyObject *arg)