summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-08-17 16:58:43 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-08-17 16:58:43 (GMT)
commit9ab80a9fb4d78a9574c26950ef694f8837372017 (patch)
tree5de4548a79a8cfbd2ce2758483e42d9eaec12dd4 /Objects
parent6c82b6c5caef9ec064f507df1335adbbdadc6c49 (diff)
downloadcpython-9ab80a9fb4d78a9574c26950ef694f8837372017.zip
cpython-9ab80a9fb4d78a9574c26950ef694f8837372017.tar.gz
cpython-9ab80a9fb4d78a9574c26950ef694f8837372017.tar.bz2
Move another variable declaration up.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3e583d7..e3c5d04 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1542,6 +1542,8 @@ PyUnicode_DecodeUTF32Stateful(const char *s,
#else
int iorder[] = {3, 2, 1, 0};
#endif
+ PyObject *errorHandler = NULL;
+ PyObject *exc = NULL;
/* On narrow builds we split characters outside the BMP into two
codepoints => count how much extra space we need. */
#ifndef Py_UNICODE_WIDE
@@ -1549,8 +1551,6 @@ PyUnicode_DecodeUTF32Stateful(const char *s,
if (((Py_UCS4 *)s)[i] >= 0x10000)
pairs++;
#endif
- PyObject *errorHandler = NULL;
- PyObject *exc = NULL;
/* This might be one to much, because of a BOM */
unicode = _PyUnicode_New((size+3)/4+pairs);