From: Victor Stinner Date: Mon, 21 Nov 2011 15:01:27 +0000 (+0100) Subject: Remove temporary hacks for the issue #13441 X-Git-Tag: v3.3.0a1~771 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce0e7daf4195eda75166757183b06fd2d246e668;p=python Remove temporary hacks for the issue #13441 --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 6a751d6187..9bba1b39cf 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);\