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
9ce870cd
Commit
9ce870cd
authored
Jan 26, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some code redundancy
parent
d9404c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+11
-19
No files found.
Cython/Compiler/Nodes.py
View file @
9ce870cd
...
...
@@ -6146,26 +6146,18 @@ class ExceptClauseNode(Node):
self
.
target
.
generate_deletion_code
(
code
)
code
.
put_goto
(
end_label
)
if
code
.
label_used
(
code
.
break_label
):
code
.
put_label
(
code
.
break_label
)
if
self
.
excinfo_target
is
not
None
:
self
.
excinfo_tuple
.
generate_disposal_code
(
code
)
for
var
in
exc_vars
:
code
.
put_decref_clear
(
var
,
py_object_type
)
if
self
.
is_except_as
and
self
.
target
:
self
.
target
.
generate_deletion_code
(
code
)
code
.
put_goto
(
old_break_label
)
for
new_label
,
old_label
in
[(
code
.
break_label
,
old_break_label
),
(
code
.
continue_label
,
old_continue_label
)]:
if
code
.
label_used
(
new_label
):
code
.
put_label
(
new_label
)
if
self
.
excinfo_target
is
not
None
:
self
.
excinfo_tuple
.
generate_disposal_code
(
code
)
for
var
in
exc_vars
:
code
.
put_decref_clear
(
var
,
py_object_type
)
if
self
.
is_except_as
and
self
.
target
:
self
.
target
.
generate_deletion_code
(
code
)
code
.
put_goto
(
old_label
)
code
.
break_label
=
old_break_label
if
code
.
label_used
(
code
.
continue_label
):
code
.
put_label
(
code
.
continue_label
)
if
self
.
excinfo_target
is
not
None
:
self
.
excinfo_tuple
.
generate_disposal_code
(
code
)
for
var
in
exc_vars
:
code
.
put_decref_clear
(
var
,
py_object_type
)
if
self
.
is_except_as
and
self
.
target
:
self
.
target
.
generate_deletion_code
(
code
)
code
.
put_goto
(
old_continue_label
)
code
.
continue_label
=
old_continue_label
if
self
.
excinfo_target
is
not
None
:
...
...
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