diff options
author | Guido van Rossum <guido@python.org> | 2007-05-03 17:49:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-03 17:49:24 (GMT) |
commit | 8d30cc0144a6a94e06f3a115b07afa6314466cfd (patch) | |
tree | 0c0b2f3d75cca4173ec3e8e2962682affbd2e886 /Objects/longobject.c | |
parent | 938ef57e267838dcfbfb0d51d9bd40caece1c5db (diff) | |
download | cpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.zip cpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.tar.gz cpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.tar.bz2 |
Get rid of all #ifdef Py_USING_UNICODE (it is always present now).
(With the help of unifdef from freshmeat.)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 95abfdd..61e5bed 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1939,7 +1939,6 @@ digit beyond the first. return NULL; } -#ifdef Py_USING_UNICODE PyObject * PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base) { @@ -1957,7 +1956,6 @@ PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base) PyMem_FREE(buffer); return result; } -#endif /* forward */ static PyLongObject *x_divrem @@ -3538,12 +3536,10 @@ long_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } return PyLong_FromString(PyString_AS_STRING(x), NULL, base); } -#ifdef Py_USING_UNICODE else if (PyUnicode_Check(x)) return PyLong_FromUnicode(PyUnicode_AS_UNICODE(x), PyUnicode_GET_SIZE(x), base); -#endif else { PyErr_SetString(PyExc_TypeError, "int() can't convert non-string with explicit base"); |