Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 36697:78de5f6b2f67 legacy-trunk
Clarify C-style exception handling with proper label name.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Mon, 27 Feb 2006 22:49:54 +0000 |
| parents | e0a77010d033 |
| children | 5c36c222e7ca |
line wrap: on
line diff
--- a/Python/compile.c Mon Feb 27 22:48:55 2006 +0000 +++ b/Python/compile.c Mon Feb 27 22:49:54 2006 +0000 @@ -266,7 +266,7 @@ c.c_arena = arena; c.c_future = PyFuture_FromAST(mod, filename); if (c.c_future == NULL) - goto error; + goto finally; if (!flags) { local_flags.cf_flags = 0; flags = &local_flags; @@ -281,7 +281,7 @@ if (c.c_st == NULL) { if (!PyErr_Occurred()) PyErr_SetString(PyExc_SystemError, "no symtable"); - goto error; + goto finally; } /* XXX initialize to NULL for now, need to handle */ @@ -289,7 +289,7 @@ co = compiler_mod(&c, mod); - error: + finally: compiler_free(&c); assert(co || PyErr_Occurred()); return co;
