Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56256:a4e3832e74d1
Date: 2012-07-20 10:41 +0200
http://bitbucket.org/pypy/pypy/changeset/a4e3832e74d1/
Log: backout efded611f033
diff --git a/pypy/module/itertools/interp_itertools.py
b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -1074,12 +1074,9 @@
class W_Product(Wrappable):
def __init__(self, space, args_w, w_repeat):
- repeat = space.int_w(w_repeat)
- if repeat < 0:
- repeat = 0
self.gears = [
space.fixedview(arg_w) for arg_w in args_w
- ] * repeat
+ ] * space.int_w(w_repeat)
self.num_gears = len(self.gears)
# initialization of indicies to loop over
self.indicies = [
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit