summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscoder <stefan_ml@behnel.de>2017-11-03 08:04:09 +0100
committerGitHub <noreply@github.com>2017-11-03 08:04:09 +0100
commit9204bfdfcd541258d7f4e37e057444cb871f055e (patch)
tree5d7f895ccb48985019c54077a1729893bc857e45
parent8774a1868afb7f482bc8894c5b469ceee64dd673 (diff)
parent4073f0abb949260013fb2dd484923be90199d030 (diff)
downloadcython-9204bfdfcd541258d7f4e37e057444cb871f055e.tar.gz
Merge pull request #1975 from jdemeyer/PyWeakref_GetObject_except
Add 'except NULL' to PyWeakref_GetObject.
-rw-r--r--Cython/Includes/cpython/weakref.pxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Includes/cpython/weakref.pxd b/Cython/Includes/cpython/weakref.pxd
index ae710be69..9c4b50f56 100644
--- a/Cython/Includes/cpython/weakref.pxd
+++ b/Cython/Includes/cpython/weakref.pxd
@@ -33,7 +33,7 @@ cdef extern from "Python.h":
# a weakly-referencable object, or if callback is not callable,
# None, or NULL, this will return NULL and raise TypeError.
- PyObject* PyWeakref_GetObject(object ref)
+ PyObject* PyWeakref_GetObject(object ref) except NULL
# Return the referenced object from a weak reference, ref. If the
# referent is no longer live, returns None.