]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Move three variables that are only used inside an if block into the block,
authorWalter Dörwald <walter@livinglogic.de>
Thu, 21 Nov 2002 20:13:40 +0000 (20:13 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 21 Nov 2002 20:13:40 +0000 (20:13 +0000)
so the --disable-unicode build doesn't complain about unused variables.

Python/compile.c

index d916751ef7df9e3c0d9183150e7820bb5de393ea..d612e5b4486d5b6d08184731ae4e40b68f00fb3b 100644 (file)
@@ -1244,9 +1244,6 @@ parsestr(struct compiling *c, char *s)
 {
        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 @@ parsestr(struct compiling *c, char *s)
 #ifdef Py_USING_UNICODE
        if (unicode || Py_UnicodeFlag) {
                PyObject *u, *w;
+               char *buf;
+               char *p;
+               char *end;
                if (encoding == NULL) {
                        buf = s;
                        u = NULL;