commit | 5c960b8c6430684fd78290d087ce9aa1791672a4 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Jun 24 22:28:56 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Jun 24 22:28:56 2008 +0000 |
tree | ac556778f1975d09f5ed6c24487f19713e97ce73 | |
parent | 11c1a3326f41e1eb2a1865a554bbd9b12819fddd [diff] [blame] |
Revert 64451.
diff --git a/Objects/abstract.c b/Objects/abstract.c index 0d40d17..60a5e84 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c
@@ -1451,11 +1451,8 @@ PyNumber_ToBase(PyObject *n, int base) { PyObject *res = NULL; - PyObject *index; + PyObject *index = PyNumber_Index(n); - if (PyFloat_Check(n)) - return _float_to_base(n, base); - index = PyNumber_Index(n); if (!index) return NULL; if (PyLong_Check(index))