Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9f72dbf
Commit
e9f72dbf
authored
Sep 02, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge 3.2
parents
f2f2bfee
c5d7518a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Python/ast.c
Python/ast.c
+2
-2
No files found.
Python/ast.c
View file @
e9f72dbf
...
@@ -585,7 +585,7 @@ new_identifier(const char* n, struct compiling *c)
...
@@ -585,7 +585,7 @@ new_identifier(const char* n, struct compiling *c)
static
int
static
int
ast_error
(
const
node
*
n
,
const
char
*
errstr
)
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
)
if
(
!
u
)
return
0
;
return
0
;
/*
/*
...
@@ -593,7 +593,7 @@ ast_error(const node *n, const char *errstr)
...
@@ -593,7 +593,7 @@ ast_error(const node *n, const char *errstr)
* exception in order to chain it. ast_error_finish, however, requires the
* exception in order to chain it. ast_error_finish, however, requires the
* error not to be normalized.
* error not to be normalized.
*/
*/
PyObject
*
save
=
PyThreadState_GET
()
->
exc_value
;
save
=
PyThreadState_GET
()
->
exc_value
;
PyThreadState_GET
()
->
exc_value
=
NULL
;
PyThreadState_GET
()
->
exc_value
=
NULL
;
PyErr_SetObject
(
PyExc_SyntaxError
,
u
);
PyErr_SetObject
(
PyExc_SyntaxError
,
u
);
PyThreadState_GET
()
->
exc_value
=
save
;
PyThreadState_GET
()
->
exc_value
=
save
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment