From 295c3fdcd61db6936219bb50c251807414fe7c01 Mon Sep 17 00:00:00 2001 From: Holger Kohr Date: Fri, 11 Aug 2017 11:34:30 +0200 Subject: [PATCH] MAINT: small fix to npy_printoptions --- odl/util/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odl/util/utility.py b/odl/util/utility.py index f5d40c789e1..e894950938a 100644 --- a/odl/util/utility.py +++ b/odl/util/utility.py @@ -76,7 +76,7 @@ def __init__(self, **new_opts): def __enter__(self): np.set_printoptions(**self.new_opts) - def __exit__(self, type, value, traceback): + def __exit__(self, *exc_info): np.set_printoptions(**self.orig_opts)