Make reprdiff test py3-proof.

In py3 range returns a generator like xrange did in py2.
Slicing generators doesn't work.