From 7106c2e8f3a7af808405e8d63c5a8e764ac44933 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Tue, 6 Oct 2015 18:31:13 +0100 Subject: [PATCH] [tests] failing although the same... --- GPy/plotting/matplot_dep/controllers/axis_event_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/controllers/axis_event_controller.py b/GPy/plotting/matplot_dep/controllers/axis_event_controller.py index 55750cde..387f2ae2 100644 --- a/GPy/plotting/matplot_dep/controllers/axis_event_controller.py +++ b/GPy/plotting/matplot_dep/controllers/axis_event_controller.py @@ -14,7 +14,7 @@ class AxisEventController(object): return self def deactivate(self): for cb_class in self.ax.callbacks.callbacks.values(): - for cb_num in cb_class.keys()[:]: + for cb_num in dict(cb_class).keys(): self.ax.callbacks.disconnect(cb_num) def activate(self): self.ax.callbacks.connect('xlim_changed', self.xlim_changed)