From ce0e7daf4195eda75166757183b06fd2d246e668 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 21 Nov 2011 16:01:27 +0100 Subject: [PATCH] Remove temporary hacks for the issue #13441 --- Modules/_localemodule.c | 46 ----------------------------------------- 1 file changed, 46 deletions(-) diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 6a751d61875..9bba1b39cf7 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -72,20 +72,6 @@ str2uni(const char* s) assert(res1 != (size_t)-1); #else assert(res1 == needed); -#endif -#ifdef Py_DEBUG - { - size_t i; - printf("Decode wchar_t {"); - for (i=0; i %s\n", result); -#endif result_object = str2uni(result); if (!result_object) return NULL; @@ -221,20 +184,11 @@ PyLocale_localeconv(PyObject* self) /* hopefully, the localeconv result survives the C library calls involved herein */ -#ifdef Py_DEBUG -#define RESULT_STRING(s)\ - dump_str(#s, l->s); \ - x = str2uni(l->s); \ - if (!x) goto failed;\ - PyDict_SetItemString(result, #s, x);\ - Py_XDECREF(x) -#else #define RESULT_STRING(s)\ x = str2uni(l->s); \ if (!x) goto failed;\ PyDict_SetItemString(result, #s, x);\ Py_XDECREF(x) -#endif #define RESULT_INT(i)\ x = PyLong_FromLong(l->i);\