summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-03 17:49:24 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-03 17:49:24 (GMT)
commit8d30cc0144a6a94e06f3a115b07afa6314466cfd (patch)
tree0c0b2f3d75cca4173ec3e8e2962682affbd2e886 /Python/codecs.c
parent938ef57e267838dcfbfb0d51d9bd40caece1c5db (diff)
downloadcpython-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 'Python/codecs.c')
-rw-r--r--Python/codecs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 4b0f4cb..ddd19359 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -468,7 +468,6 @@ PyObject *PyCodec_StrictErrors(PyObject *exc)
}
-#ifdef Py_USING_UNICODE
PyObject *PyCodec_IgnoreErrors(PyObject *exc)
{
Py_ssize_t end;
@@ -729,7 +728,6 @@ PyObject *PyCodec_BackslashReplaceErrors(PyObject *exc)
return NULL;
}
}
-#endif
static PyObject *strict_errors(PyObject *self, PyObject *exc)
{
@@ -737,7 +735,6 @@ static PyObject *strict_errors(PyObject *self, PyObject *exc)
}
-#ifdef Py_USING_UNICODE
static PyObject *ignore_errors(PyObject *self, PyObject *exc)
{
return PyCodec_IgnoreErrors(exc);
@@ -760,7 +757,6 @@ static PyObject *backslashreplace_errors(PyObject *self, PyObject *exc)
{
return PyCodec_BackslashReplaceErrors(exc);
}
-#endif
static int _PyCodecRegistry_Init(void)
{
@@ -777,7 +773,6 @@ static int _PyCodecRegistry_Init(void)
METH_O
}
},
-#ifdef Py_USING_UNICODE
{
"ignore",
{
@@ -810,7 +805,6 @@ static int _PyCodecRegistry_Init(void)
METH_O
}
}
-#endif
};
PyInterpreterState *interp = PyThreadState_GET()->interp;