[Python-checkins] r75877 - python/branches/py3k/Modules/_localemodule.c
georg.brandl
python-checkins at python.org
Tue Oct 27 22:37:48 CET 2009
Author: georg.brandl
Date: Tue Oct 27 22:37:48 2009
New Revision: 75877
Log:
Only declare variable when it's used.
Modified:
python/branches/py3k/Modules/_localemodule.c
Modified: python/branches/py3k/Modules/_localemodule.c
==============================================================================
--- python/branches/py3k/Modules/_localemodule.c (original)
+++ python/branches/py3k/Modules/_localemodule.c Tue Oct 27 22:37:48 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