[Python-checkins] r75878 - in python/branches/release31-maint: Modules/_localemodule.c
georg.brandl
python-checkins at python.org
Tue Oct 27 22:39:08 CET 2009
Author: georg.brandl
Date: Tue Oct 27 22:39:08 2009
New Revision: 75878
Log:
Merged revisions 75877 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r75877 | georg.brandl | 2009-10-27 22:37:48 +0100 (Di, 27 Okt 2009) | 1 line
Only declare variable when it's used.
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Modules/_localemodule.c
Modified: python/branches/release31-maint/Modules/_localemodule.c
==============================================================================
--- python/branches/release31-maint/Modules/_localemodule.c (original)
+++ python/branches/release31-maint/Modules/_localemodule.c Tue Oct 27 22:39:08 2009
@@ -281,7 +281,9 @@
wchar_t *s, *buf = NULL;
size_t n1, n2;
PyObject *result = NULL;
+#ifndef HAVE_USABLE_WCHAR_T
Py_ssize_t i;
+#endif
if (!PyArg_ParseTuple(args, "u#:strxfrm", &s0, &n0))
return NULL;
More information about the Python-checkins
mailing list