From 8264710bfe7d270a5b3ec7448492f1135f694d41 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 21 Nov 2016 14:40:48 +0100 Subject: [PATCH] python: use python 3 exception syntax This syntax works for both python 2 and python 3, whereas the old syntax is not supported in python 3. Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- interface/python.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/python.cc b/interface/python.cc index d8a992d4..c7e0ae4b 100644 --- a/interface/python.cc +++ b/interface/python.cc @@ -570,8 +570,8 @@ void isl_class::print_method(FunctionDecl *method, vector super) if (drop_user) { printf(" if exc_info[0] != None:\n"); - printf(" raise exc_info[0][0], " - "exc_info[0][1], exc_info[0][2]\n"); + printf(" raise (exc_info[0][0], " + "exc_info[0][1], exc_info[0][2])\n"); } print_method_return(method); -- 2.11.4.GIT