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
1175c43a
Commit
1175c43a
authored
Feb 27, 2006
by
Thomas Wouters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify C-style exception handling with proper label name.
parent
bfe51ea5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Python/compile.c
Python/compile.c
+3
-3
No files found.
Python/compile.c
View file @
1175c43a
...
@@ -266,7 +266,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
...
@@ -266,7 +266,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
c
.
c_arena
=
arena
;
c
.
c_arena
=
arena
;
c
.
c_future
=
PyFuture_FromAST
(
mod
,
filename
);
c
.
c_future
=
PyFuture_FromAST
(
mod
,
filename
);
if
(
c
.
c_future
==
NULL
)
if
(
c
.
c_future
==
NULL
)
goto
error
;
goto
finally
;
if
(
!
flags
)
{
if
(
!
flags
)
{
local_flags
.
cf_flags
=
0
;
local_flags
.
cf_flags
=
0
;
flags
=
&
local_flags
;
flags
=
&
local_flags
;
...
@@ -281,7 +281,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
...
@@ -281,7 +281,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
if
(
c
.
c_st
==
NULL
)
{
if
(
c
.
c_st
==
NULL
)
{
if
(
!
PyErr_Occurred
())
if
(
!
PyErr_Occurred
())
PyErr_SetString
(
PyExc_SystemError
,
"no symtable"
);
PyErr_SetString
(
PyExc_SystemError
,
"no symtable"
);
goto
error
;
goto
finally
;
}
}
/* XXX initialize to NULL for now, need to handle */
/* XXX initialize to NULL for now, need to handle */
...
@@ -289,7 +289,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
...
@@ -289,7 +289,7 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
co
=
compiler_mod
(
&
c
,
mod
);
co
=
compiler_mod
(
&
c
,
mod
);
error
:
finally
:
compiler_free
(
&
c
);
compiler_free
(
&
c
);
assert
(
co
||
PyErr_Occurred
());
assert
(
co
||
PyErr_Occurred
());
return
co
;
return
co
;
...
...
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