Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
393485ac
Commit
393485ac
authored
Dec 14, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanup
--HG-- extra : amend_source : c948151354a77be026c92d57abc151e51fb271c6
parent
1744ee74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+4
-4
No files found.
Cython/Compiler/Nodes.py
View file @
393485ac
...
...
@@ -6389,12 +6389,12 @@ class TryFinallyStatNode(StatNode):
code
.
putln
(
"/*finally:*/ {"
)
cases_used
=
[]
error_label_used
=
0
error_label_used
=
False
for
i
,
new_label
in
enumerate
(
new_labels
):
if
new_label
in
code
.
labels_used
:
if
code
.
label_used
(
new_label
)
:
cases_used
.
append
(
i
)
if
new_label
==
new_error_label
:
error_label_used
=
1
error_label_used
=
True
error_label_case
=
i
if
cases_used
:
...
...
@@ -6436,7 +6436,7 @@ class TryFinallyStatNode(StatNode):
self
.
finally_clause
.
generate_execution_code
(
code
)
if
error_label_used
:
if
finally_error_label
in
code
.
labels_used
and
self
.
preserve_exception
:
if
code
.
label_used
(
finally_error_label
)
and
self
.
preserve_exception
:
over_label
=
code
.
new_label
()
code
.
put_goto
(
over_label
)
code
.
put_label
(
finally_error_label
)
...
...
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