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
faf63c64
Commit
faf63c64
authored
Aug 28, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyPy fix
parent
dab872a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+10
-3
No files found.
Cython/Utility/Exceptions.c
View file @
faf63c64
...
@@ -79,14 +79,21 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
...
@@ -79,14 +79,21 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
}
}
#if PY_VERSION_HEX < 0x02050000
#if PY_VERSION_HEX < 0x02050000
if
(
PyClass_Check
(
type
))
if
(
PyClass_Check
(
type
))
{
#else
#else
if
(
PyType_Check
(
type
))
if
(
PyType_Check
(
type
))
{
#endif
#endif
/* instantiate the type now (we don't know when and how it will be caught) */
/* instantiate the type now (we don't know when and how it will be caught) */
#if CYTHON_COMPILING_IN_PYPY
/* PyPy can't handle value == NULL */
if
(
!
value
)
{
Py_INCREF
(
Py_None
);
value
=
Py_None
;
}
#endif
PyErr_NormalizeException
(
&
type
,
&
value
,
&
tb
);
PyErr_NormalizeException
(
&
type
,
&
value
,
&
tb
);
else
{
}
else
{
/* Raising an instance. The value should be a dummy. */
/* Raising an instance. The value should be a dummy. */
if
(
value
)
{
if
(
value
)
{
PyErr_SetString
(
PyExc_TypeError
,
PyErr_SetString
(
PyExc_TypeError
,
...
...
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