From ce0e7daf4195eda75166757183b06fd2d246e668 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 21 Nov 2011 16:01:27 +0100 Subject: 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 6a751d6..9bba1b3 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -73,43 +73,12 @@ str2uni(const char* s) #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);\ -- cgit v0.12