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
Boxiang Sun
cython
Commits
8ffc1885
Commit
8ffc1885
authored
Mar 25, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup last commit
parent
2ccfbc71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+7
-11
No files found.
Cython/Compiler/Nodes.py
View file @
8ffc1885
...
...
@@ -4279,22 +4279,18 @@ class ExceptClauseNode(Node):
else
:
code
.
putln
(
"/*except:*/ {"
)
# most simple case: empty body (pass)
empty_body
=
not
self
.
target
and
not
self
.
excinfo_target
and
\
not
getattr
(
self
.
body
,
'stats'
,
True
)
if
empty_body
:
# most simple case: reset the exception state, done
if
self
.
exc_vars
:
exc_vars
=
self
.
exc_vars
elif
not
getattr
(
self
.
body
,
'stats'
,
True
):
# most simple case: no exception variable, empty body (pass)
# => reset the exception state, done
code
.
putln
(
"PyErr_Restore(0,0,0);"
)
code
.
put_goto
(
end_label
)
code
.
putln
(
"}"
)
return
if
self
.
exc_vars
:
exc_vars
=
self
.
exc_vars
else
:
# during type analysis, we didn't know if we need the
se,
# but apparently, we do
# during type analysis, we didn't know if we need the
#
exception value,
but apparently, we do
exc_vars
=
[
code
.
funcstate
.
allocate_temp
(
py_object_type
,
manage_ref
=
True
)
for
i
in
xrange
(
3
)]
...
...
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