From 86909574fc2f7b11064aed9e100a531f3fca92b6 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer <jdemeyer@cage.ugent.be> Date: Thu, 2 Nov 2017 19:05:15 +0100 Subject: [PATCH] Add 'except NULL' to PyWeakref_GetObject. --- Cython/Includes/cpython/weakref.pxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.9