summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-11-21 20:13:40 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-11-21 20:13:40 (GMT)
commit4c6c76559d0ff340fec8b665f49500784513dbd3 (patch)
tree6151712ef9c9290a790aeb38a37df429f5f929e2 /Python/compile.c
parentbf73db835a3e0302d38a86125dad55a60323f8ae (diff)
downloadcpython-4c6c76559d0ff340fec8b665f49500784513dbd3.zip
cpython-4c6c76559d0ff340fec8b665f49500784513dbd3.tar.gz
cpython-4c6c76559d0ff340fec8b665f49500784513dbd3.tar.bz2
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.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index d916751..d612e5b 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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;