Exception fixes for Python 3 compat

This commit is contained in:
Mike Croucher 2015-02-26 13:38:13 +00:00
parent 7c6ff2982f
commit f961520c42
8 changed files with 12 additions and 12 deletions

View file

@ -11,7 +11,7 @@ class Symbolic(Kern, Symbolic_core):
def __init__(self, input_dim, k=None, output_dim=1, name='symbolic', parameters=None, active_dims=None, operators=None, func_modules=[]):
if k is None:
raise ValueError, "You must provide an argument for the covariance function."
raise ValueError("You must provide an argument for the covariance function.")
Kern.__init__(self, input_dim, active_dims, name=name)
kdiag = k