Skip to content

Commit

Permalink
Fix error message formatting issue on Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nateyoder committed May 2, 2014
1 parent 0b139b4 commit e7bec1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/kernel_approximation.py
Expand Up @@ -469,7 +469,7 @@ def fit(self, X, y=None):
basis_inds = None

else:
raise NameError('{} is not a supported basis_method'.format(self.basis_method))
raise NameError('{0} is not a supported basis_method'.format(self.basis_method))

basis_kernel = pairwise_kernels(basis, metric=self.kernel,
filter_params=True,
Expand Down

0 comments on commit e7bec1e

Please sign in to comment.