Skip to content

Commit 58873be

Browse files
author
raymond.hettinger
committed
Neaten-up a bit.
git-svn-id: http://svn.python.org/projects/python/trunk@60519 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent cec589d commit 58873be

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Modules/mathmodule.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,13 @@ FUNC1(tanh, tanh,
157157
static PyObject *
158158
math_trunc(PyObject *self, PyObject *number)
159159
{
160-
/* XXX: The py3k branch gets better errors for this by using
161-
_PyType_Lookup(), but since float's mro isn't set in py2.6,
162-
we just use PyObject_CallMethod here. */
163160
return PyObject_CallMethod(number, "__trunc__", NULL);
164161
}
165162

166163
PyDoc_STRVAR(math_trunc_doc,
167164
"trunc(x:Real) -> Integral\n"
168165
"\n"
169-
"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic"
170-
"method.");
166+
"Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method.");
171167

172168
static PyObject *
173169
math_frexp(PyObject *self, PyObject *arg)

0 commit comments

Comments
 (0)