Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: Changeset: r82990:075aea373fa9 Date: 2016-03-12 10:11 +0100 http://bitbucket.org/pypy/pypy/changeset/075aea373fa9/
Log: we don't support python 2.5 any more diff --git a/rpython/jit/codewriter/test/test_jtransform.py b/rpython/jit/codewriter/test/test_jtransform.py --- a/rpython/jit/codewriter/test/test_jtransform.py +++ b/rpython/jit/codewriter/test/test_jtransform.py @@ -1,19 +1,7 @@ import py import random -try: - from itertools import product -except ImportError: - # Python 2.5, this is taken from the CPython docs, but simplified. - def product(*args): - # product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy - # product(range(2), repeat=3) --> 000 001 010 011 100 101 110 111 - pools = map(tuple, args) - result = [[]] - for pool in pools: - result = [x+[y] for x in result for y in pool] - for prod in result: - yield tuple(prod) +from itertools import product from rpython.flowspace.model import FunctionGraph, Block, Link, c_last_exception from rpython.flowspace.model import SpaceOperation, Variable, Constant _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit