Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 35759:d91ed7107fd2 legacy-trunk
ANSI-C-ify the placement of local var declarations.
| author | Armin Rigo <arigo@tunes.org> |
|---|---|
| date | Fri, 21 Oct 2005 12:57:31 +0000 |
| parents | 1c4d192f1568 |
| children | 7ee6880cb16f |
line wrap: on
line diff
--- a/Python/compile.c Fri Oct 21 11:45:01 2005 +0000 +++ b/Python/compile.c Fri Oct 21 12:57:31 2005 +0000 @@ -2329,8 +2329,9 @@ 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;
