But if version == 0.13 (say), then the first case is skipped and we fall in
the second block (but still not in the third), in which we define a
slightly different f_regression function than the one of the first block
(sparse support vs no sparse support).
Le 4 mars 2014 22:06, "bthirion" <notifications@github.com> a écrit :

> In nilearn/_utils/fixes/__init__.py:
>
> > @@ -0,0 +1,11 @@
> > +from distutils.version import LooseVersion
> > +import sklearn
> > +
> > +if LooseVersion(sklearn.__version__) < LooseVersion('0.12'):
> > +    from .sklearn_f_regression_nosparse import (
> > +        f_regression_nosparse as f_regression)
> > +elif (LooseVersion(sklearn.__version__) < LooseVersion('0.15') or
>
> yes, but,if version < .12 then version < 0.15, so why bother with the
> first case ? You are redefining f_regression in both cases ...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nilearn/nilearn/pull/167/files#r10274571>
> .
>