Author: Manuel Jacob <[email protected]>
Branch: 
Changeset: r82210:5c06f73f7e1f
Date: 2016-02-13 14:43 +0100
http://bitbucket.org/pypy/pypy/changeset/5c06f73f7e1f/

Log:    Pass iterable instead of iterator to space.iteriterable() (both
        works).

diff --git a/pypy/objspace/std/dictmultiobject.py 
b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -1419,8 +1419,7 @@
         return space.len(self.w_dict)
 
 def _all_contained_in(space, w_dictview, w_other):
-    w_iter = space.iter(w_dictview)
-    for w_item in space.iteriterable(w_iter):
+    for w_item in space.iteriterable(w_dictview):
         if not space.contains_w(w_other, w_item):
             return space.w_False
     return space.w_True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to