diff options
author | Raymond Hettinger <python@rcn.com> | 2008-06-24 22:28:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-06-24 22:28:56 (GMT) |
commit | 5c960b8c6430684fd78290d087ce9aa1791672a4 (patch) | |
tree | ac556778f1975d09f5ed6c24487f19713e97ce73 /Objects/abstract.c | |
parent | 11c1a3326f41e1eb2a1865a554bbd9b12819fddd (diff) | |
download | cpython-5c960b8c6430684fd78290d087ce9aa1791672a4.zip cpython-5c960b8c6430684fd78290d087ce9aa1791672a4.tar.gz cpython-5c960b8c6430684fd78290d087ce9aa1791672a4.tar.bz2 |
Revert 64451.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 @@ PyObject * 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)) |