From 8d30cc0144a6a94e06f3a115b07afa6314466cfd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 3 May 2007 17:49:24 +0000 Subject: Get rid of all #ifdef Py_USING_UNICODE (it is always present now). (With the help of unifdef from freshmeat.) --- Objects/longobject.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Objects/longobject.c') diff --git a/Objects/longobject.c b/Objects/longobject.c index 95abfddd98..61e5bed521 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"); -- cgit v1.2.1