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.
This commit is contained in:
Walter Dörwald 2002-11-21 20:13:40 +00:00
parent bf73db835a
commit 4c6c76559d

View 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;