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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8755e2ff
Commit
8755e2ff
authored
Jun 06, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup after last change
parent
a8023e5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+8
-15
No files found.
Cython/Compiler/Nodes.py
View file @
8755e2ff
...
@@ -956,26 +956,19 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -956,26 +956,19 @@ class FuncDefNode(StatNode, BlockNode):
exc_check
=
self
.
caller_will_check_exceptions
()
exc_check
=
self
.
caller_will_check_exceptions
()
if
err_val
is
not
None
or
exc_check
:
if
err_val
is
not
None
or
exc_check
:
code
.
putln
(
'__Pyx_AddTraceback("%s");'
%
self
.
entry
.
qualified_name
)
code
.
putln
(
'__Pyx_AddTraceback("%s");'
%
self
.
entry
.
qualified_name
)
if
err_val
is
None
and
self
.
return_type
.
default_value
:
err_val
=
self
.
return_type
.
default_value
if
err_val
is
not
None
:
code
.
putln
(
"%s = %s;"
%
(
Naming
.
retval_cname
,
err_val
))
else
:
else
:
code
.
putln
(
code
.
putln
(
'__Pyx_WriteUnraisable("%s");'
%
'__Pyx_WriteUnraisable("%s");'
%
self
.
entry
.
qualified_name
)
self
.
entry
.
qualified_name
)
env
.
use_utility_code
(
unraisable_exception_utility_code
)
env
.
use_utility_code
(
unraisable_exception_utility_code
)
#if not self.return_type.is_void:
default_retval
=
self
.
return_type
.
default_value
default_retval
=
self
.
return_type
.
default_value
if
default_retval
:
if
err_val
is
None
and
default_retval
:
err_val
=
default_retval
if
err_val
is
not
None
:
code
.
putln
(
code
.
putln
(
"%s = %s;"
%
(
"%s = %s;"
%
(
Naming
.
retval_cname
,
Naming
.
retval_cname
,
default_retval
))
err_val
))
#self.return_type.default_value))
# ----- Return cleanup
# ----- Return cleanup
code
.
put_label
(
code
.
return_label
)
code
.
put_label
(
code
.
return_label
)
if
not
Options
.
init_local_none
:
if
not
Options
.
init_local_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