diff Python/compile.c @ 26319:90e9a3ecda44 legacy-trunk

Move three variables that are only used inside an if block into the block, so the --disable-unicode build doesn't complain about unused variables.
author Walter Dörwald <walter@livinglogic.de>
date Thu, 21 Nov 2002 20:13:40 +0000
parents 2c0e0f0dca6f
children cc05c2c8660e
line wrap: on
line diff
--- a/Python/compile.c	Thu Nov 21 20:08:33 2002 +0000
+++ b/Python/compile.c	Thu Nov 21 20:13:40 2002 +0000
@@ -1244,9 +1244,6 @@
 {
 	PyObject *v;
 	size_t len;
-	char *buf;
-	char *p;
-	char *end;
 	int quote = *s;
 	int rawmode = 0;
 	char* encoding = ((c == NULL) ? NULL : c->c_encoding);
@@ -1289,6 +1286,9 @@
 #ifdef Py_USING_UNICODE
 	if (unicode || Py_UnicodeFlag) {
 		PyObject *u, *w;
+		char *buf;
+		char *p;
+		char *end;
 		if (encoding == NULL) {
 			buf = s;
 			u = NULL;