diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-09-02 18:38:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-09-02 18:38:08 (GMT) |
commit | c5d7518a2eb139172f324a3c6a1ea78ee312b1a5 (patch) | |
tree | 93a5a0ab3d526a41a38566e0452ef8b1f8c13f9e /Python | |
parent | 2e2c903700991aa9f7e96d7a7fdaed3628dc7e1e (diff) | |
download | cpython-c5d7518a2eb139172f324a3c6a1ea78ee312b1a5.zip cpython-c5d7518a2eb139172f324a3c6a1ea78ee312b1a5.tar.gz cpython-c5d7518a2eb139172f324a3c6a1ea78ee312b1a5.tar.bz2 |
move variable decl to the top of the function
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ast.c b/Python/ast.c index 3d0e384..d2bf032 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -89,7 +89,7 @@ new_identifier(const char* n, PyArena *arena) static int ast_error(const node *n, const char *errstr) { - PyObject *u = Py_BuildValue("zii", errstr, LINENO(n), n->n_col_offset); + PyObject *u = Py_BuildValue("zii", errstr, LINENO(n), n->n_col_offset), *save; if (!u) return 0; /* @@ -97,7 +97,7 @@ ast_error(const node *n, const char *errstr) * exception in order to chain it. ast_error_finish, however, requires the * error not to be normalized. */ - PyObject *save = PyThreadState_GET()->exc_value; + save = PyThreadState_GET()->exc_value; PyThreadState_GET()->exc_value = NULL; PyErr_SetObject(PyExc_SyntaxError, u); PyThreadState_GET()->exc_value = save; |