daien/scikit-learn — comment on commit d685f20aff5026c6542e57cc56bd6a86f802d884
File: sklearn/grid_search.py line 101
By ogrisel:

That will result in the following error message: `"Cannot use a custom kernel function.Precompute the kernel matrix instead."` (note the lack of whitespace after the period. Instead you can directly do the following:

```python
raise ValueError("Cannot use a custom kernel function. "
"Precompute the kernel matrix instead.")
```