Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: py3k Changeset: r58017:b35694b4c086 Date: 2012-10-11 23:03 +0200 http://bitbucket.org/pypy/pypy/changeset/b35694b4c086/
Log: Fix range.__repr__, test passes._ diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functional.py --- a/pypy/module/__builtin__/functional.py +++ b/pypy/module/__builtin__/functional.py @@ -309,9 +309,6 @@ return space.mod(space.wrap("range(%d, %d, %d)"), space.newtuple([self.w_start, self.w_stop, self.w_step])) - elif space.is_true(space.eq(self.w_start, space.newint(0))): - return space.mod(space.wrap("range(%d)"), - space.newtuple([self.w_stop])) else: return space.mod(space.wrap("range(%d, %d)"), space.newtuple([self.w_start, self.w_stop])) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit