diff options
author | Thomas Wouters <thomas@python.org> | 2006-02-27 22:49:54 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-02-27 22:49:54 (GMT) |
commit | 1175c43a12c3020a11c596f45d6bd19226025e8c (patch) | |
tree | f62f10e76dbc7d892828d0c053abdb811efb4230 | |
parent | bfe51ea5c83fc67aa7f4a04832e7366b2d3e289d (diff) | |
download | cpython-1175c43a12c3020a11c596f45d6bd19226025e8c.zip cpython-1175c43a12c3020a11c596f45d6bd19226025e8c.tar.gz cpython-1175c43a12c3020a11c596f45d6bd19226025e8c.tar.bz2 |
Clarify C-style exception handling with proper label name.
-rw-r--r-- | Python/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c index d5555d5..9705ce4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -266,7 +266,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags, 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 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags, 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 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags, co = compiler_mod(&c, mod); - error: + finally: compiler_free(&c); assert(co || PyErr_Occurred()); return co; |