I thought so too, but trying it out:

    In [165]: from dipy.utils.six.moves import range

---------------------------------------------------------------------------
    ImportError                               Traceback (most recent call
last)
    <ipython-input-165-208b8d8adae3> in <module>()
    ----> 1 from dipy.utils.six.moves import range

    ImportError: cannot import name range



On Thu, Jul 18, 2013 at 11:38 PM, Stefan van der Walt <
notifications@github.com> wrote:

> In dipy/reconst/dti.py:
>
> >  import numpy as np
> > -from ..data import get_sphere
> > +
> > +import scipy.optimize as opt
> > +
> > +from dipy.utils.six.moves import xrange
>
> What I meant is that you can import range instead (it is also in that
> module), then you don't need to do anything when we switch to 3 (just
> remove the important).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/54/files#r5286488>
> .
>