diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-02 05:24:44 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-02 05:24:44 +0000 |
commit | fe424f754f408840981bdf9cb6de31243f79a7c8 (patch) | |
tree | c6d12ec4b2a38a680c36e85bdb203fb81cd175a8 | |
parent | 2d1aa3350a40bfd333dac798afdaf2f0b937c2cf (diff) | |
download | cpython-git-fe424f754f408840981bdf9cb6de31243f79a7c8.tar.gz |
Neaten-up a bit.
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index cdc3057103..63a2cca044 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -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) |