diff options
author | Guido van Rossum <guido@python.org> | 2007-05-03 17:49:24 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-03 17:49:24 +0000 |
commit | 8d30cc0144a6a94e06f3a115b07afa6314466cfd (patch) | |
tree | 0c0b2f3d75cca4173ec3e8e2962682affbd2e886 /Objects/exceptions.c | |
parent | 938ef57e267838dcfbfb0d51d9bd40caece1c5db (diff) | |
download | cpython-git-8d30cc0144a6a94e06f3a115b07afa6314466cfd.tar.gz |
Get rid of all #ifdef Py_USING_UNICODE (it is always present now).
(With the help of unifdef from freshmeat.)
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 2b05cc58d1..e30e9df655 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1183,7 +1183,6 @@ SimpleExtendsException(PyExc_StandardError, ValueError, SimpleExtendsException(PyExc_ValueError, UnicodeError, "Unicode related error."); -#ifdef Py_USING_UNICODE static int get_int(PyObject *attr, Py_ssize_t *value, const char *name) { @@ -1788,7 +1787,6 @@ PyUnicodeTranslateError_Create( return PyObject_CallFunction(PyExc_UnicodeTranslateError, "u#nns", object, length, start, end, reason); } -#endif /* @@ -1989,11 +1987,9 @@ _PyExc_Init(void) PRE_INIT(KeyError) PRE_INIT(ValueError) PRE_INIT(UnicodeError) -#ifdef Py_USING_UNICODE PRE_INIT(UnicodeEncodeError) PRE_INIT(UnicodeDecodeError) PRE_INIT(UnicodeTranslateError) -#endif PRE_INIT(AssertionError) PRE_INIT(ArithmeticError) PRE_INIT(FloatingPointError) @@ -2051,11 +2047,9 @@ _PyExc_Init(void) POST_INIT(KeyError) POST_INIT(ValueError) POST_INIT(UnicodeError) -#ifdef Py_USING_UNICODE POST_INIT(UnicodeEncodeError) POST_INIT(UnicodeDecodeError) POST_INIT(UnicodeTranslateError) -#endif POST_INIT(AssertionError) POST_INIT(ArithmeticError) POST_INIT(FloatingPointError) |