From 1cb92f8da1cf4a5e2cadede81589c2eec3b4621e Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 1 Jun 2019 22:27:06 +0200 Subject: [PATCH] work around another swig4 change * python/spot/impl.i: Make sure spot::acc_cond::mark_t::operator<< exceptions are not ignored. --- python/spot/impl.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/spot/impl.i b/python/spot/impl.i index 56603e15b..2e86ca721 100644 --- a/python/spot/impl.i +++ b/python/spot/impl.i @@ -493,6 +493,10 @@ namespace std { %include %include %include + /* These operators may raise exceptions, and we do not + want Swig4 to convert those exceptions to NotImplemented. */ +%nopythonmaybecall spot::acc_cond::mark_t::operator<<; +%nopythonmaybecall spot::acc_cond::mark_t::operator>>; %implicitconv spot::acc_cond::mark_t; %implicitconv spot::acc_cond::acc_code; %feature("flatnested") spot::acc_cond::mark_t;