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
Kirill Smelkov
cython
Commits
25238c48
Commit
25238c48
authored
Feb 15, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor formatting fixes
parent
b345988b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+19
-23
No files found.
Cython/Utility/Exceptions.c
View file @
25238c48
...
...
@@ -106,8 +106,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
if
(
PyInstance_Check
(
type
))
{
type
=
(
PyObject
*
)
((
PyInstanceObject
*
)
type
)
->
in_class
;
Py_INCREF
(
type
);
}
else
{
}
else
{
type
=
0
;
PyErr_SetString
(
PyExc_TypeError
,
"raise: exception must be an old-style class or instance"
);
...
...
@@ -163,8 +162,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
else
if
(
PyTuple_Check
(
value
))
{
Py_INCREF
(
value
);
args
=
value
;
}
else
}
else
args
=
PyTuple_Pack
(
1
,
value
);
if
(
!
args
)
goto
bad
;
...
...
@@ -199,12 +197,10 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
fixed_cause
=
PyObject_CallObject
(
cause
,
NULL
);
if
(
fixed_cause
==
NULL
)
goto
bad
;
}
else
if
(
PyExceptionInstance_Check
(
cause
))
{
}
else
if
(
PyExceptionInstance_Check
(
cause
))
{
fixed_cause
=
cause
;
Py_INCREF
(
fixed_cause
);
}
else
{
}
else
{
PyErr_SetString
(
PyExc_TypeError
,
"exception causes must derive from "
"BaseException"
);
...
...
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