[pypy-commit] pypy default: Hum, I'll revert this if I'm wrong, but I don't see how

arigo noreply at buildbot.pypy.org
Tue Dec 6 23:14:17 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r50231:9873bcdab29c
Date: 2011-12-06 23:13 +0100
http://bitbucket.org/pypy/pypy/changeset/9873bcdab29c/

Log:	Hum, I'll revert this if I'm wrong, but I don't see how w_iterables
	can ever be None.

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
@@ -439,9 +439,6 @@
         self.w_it = self.space.iter(self.space.next(self.w_iterables))
 
     def next_w(self):
-        if not self.w_iterables:
-            # already stopped
-            raise OperationError(self.space.w_StopIteration, self.space.w_None)
         if not self.w_it:
             self._advance()
         try:


More information about the pypy-commit mailing list