[pypy-commit] pypy default: bah.

arigo noreply at buildbot.pypy.org
Tue Nov 1 13:04:20 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48644:0ffcdb4ec169
Date: 2011-11-01 11:41 +0100
http://bitbucket.org/pypy/pypy/changeset/0ffcdb4ec169/

Log:	bah.

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -783,11 +783,11 @@
             if isinstance(w_iterator, GeneratorIterator):
                 return w_iterator.unpackiterable()
             # /xxx
-            lst_w = self._unpackiterable_unknown_length(w_iterator, w_iterable)
+            return self._unpackiterable_unknown_length(w_iterator, w_iterable)
+        else:
+            lst_w = self._unpackiterable_known_length(w_iterator,
+                                                      expected_length)
             return lst_w[:]     # make the resulting list resizable
-        else:
-            return self._unpackiterable_known_length(w_iterator,
-                                                     expected_length)
 
     @jit.dont_look_inside
     def _unpackiterable_unknown_length(self, w_iterator, w_iterable):


More information about the pypy-commit mailing list