diff --git a/GPy/plotting/matplot_dep/plot_definitions.py b/GPy/plotting/matplot_dep/plot_definitions.py index ab06bcc7..74d1a382 100644 --- a/GPy/plotting/matplot_dep/plot_definitions.py +++ b/GPy/plotting/matplot_dep/plot_definitions.py @@ -167,15 +167,13 @@ class MatplotlibPlots(AbstractPlottingLibrary): # pop interpolate, which we actually do not do here! if 'interpolate' in kwargs: kwargs.pop('interpolate') - from itertools import tee - try: - from itertools import izip as zip - except ImportError: - # python 3 already is izip - pass - def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." + from itertools import tee + #try: + # from itertools import izip as zip + #except ImportError: + # pass a, b = tee(iterable) next(b, None) return zip(a, b)