And `is_classifier` is already used before this code gets executed anyway:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/cross_validation.py#L1101