diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-26 04:19:43 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-26 04:19:43 (GMT) |
commit | 6ea45d33412d4ecb2862645d57137b7ea1223281 (patch) | |
tree | 90a60a1298fff16a71f2501e87613385624a52d9 /Objects/abstract.c | |
parent | 5b0fdc9d0aef58fffe225bee493d62cd905d6b80 (diff) | |
download | cpython-6ea45d33412d4ecb2862645d57137b7ea1223281.zip cpython-6ea45d33412d4ecb2862645d57137b7ea1223281.tar.gz cpython-6ea45d33412d4ecb2862645d57137b7ea1223281.tar.bz2 |
Use unicode and remove support for some uses of str8.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 4e25061..e303caf 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1281,13 +1281,6 @@ PyNumber_Long(PyObject *o) } if (PyLong_Check(o)) /* A long subclass without nb_long */ return _PyLong_Copy((PyLongObject *)o); - if (PyString_Check(o)) - /* need to do extra error checking that PyLong_FromString() - * doesn't do. In particular long('9.5') must raise an - * exception, not truncate the float. - */ - return long_from_string(PyString_AS_STRING(o), - PyString_GET_SIZE(o)); if (PyUnicode_Check(o)) /* The above check is done in PyLong_FromUnicode(). */ return PyLong_FromUnicode(PyUnicode_AS_UNICODE(o), |