diff options
Diffstat (limited to 'call_PyErr_Clear_if_no_such_attribute.patch')
-rw-r--r-- | call_PyErr_Clear_if_no_such_attribute.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/call_PyErr_Clear_if_no_such_attribute.patch b/call_PyErr_Clear_if_no_such_attribute.patch deleted file mode 100644 index c1c401562a01..000000000000 --- a/call_PyErr_Clear_if_no_such_attribute.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/bindings/pyroot/src/Utility.cxx b/bindings/pyroot/src/Utility.cxx -index ffeae8e..d3ba063 100644 ---- a/bindings/pyroot/src/Utility.cxx -+++ b/bindings/pyroot/src/Utility.cxx -@@ -219,8 +219,10 @@ Bool_t PyROOT::Utility::AddToClass( - Bool_t PyROOT::Utility::AddToClass( PyObject* pyclass, const char* label, const char* func ) - { - PyObject* pyfunc = PyObject_GetAttrString( pyclass, const_cast< char* >( func ) ); -- if ( ! pyfunc ) -+ if ( ! pyfunc ) { -+ PyErr_Clear(); - return kFALSE; -+ } - - Bool_t isOk = PyObject_SetAttrString( pyclass, const_cast< char* >( label ), pyfunc ) == 0; - |