From 6b1e20027a8f17e4be97394e9c608686628c677e Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Sat, 28 Feb 2015 12:20:41 +0000 Subject: [PATCH] reduce fix for Python 3 --- GPy/util/caching.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPy/util/caching.py b/GPy/util/caching.py index b1419aec..196ce343 100644 --- a/GPy/util/caching.py +++ b/GPy/util/caching.py @@ -2,6 +2,7 @@ # Licensed under the BSD 3-clause license (see LICENSE.txt) from ..core.parameterization.observable import Observable import collections, weakref +from functools import reduce class Cacher(object): def __init__(self, operation, limit=5, ignore_args=(), force_kwargs=()):