mirror of
https://github.com/python/cpython.git
synced 2025-09-06 00:41:39 +00:00
ANSI-C-ify the placement of local var declarations.
This commit is contained in:
parent
b2308bb9be
commit
3144130217
3 changed files with 14 additions and 9 deletions
|
@ -2329,8 +2329,9 @@ compiler_import_as(struct compiler *c, identifier name, identifier asname)
|
|||
src = dot + 1;
|
||||
while (dot) {
|
||||
/* NB src is only defined when dot != NULL */
|
||||
PyObject *attr;
|
||||
dot = strchr(src, '.');
|
||||
PyObject *attr = PyString_FromStringAndSize(src,
|
||||
attr = PyString_FromStringAndSize(src,
|
||||
dot ? dot - src : strlen(src));
|
||||
ADDOP_O(c, LOAD_ATTR, attr, names);
|
||||
src = dot + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue