mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
bf73db835a
commit
4c6c76559d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue