Author: Armin Rigo <ar...@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: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit