Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r82212:8e9369bbc962
Date: 2016-02-13 15:04 +0100
http://bitbucket.org/pypy/pypy/changeset/8e9369bbc962/

Log:    Simplify code.

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
@@ -1405,9 +1405,8 @@
             if len_other > len_self:
                 self, w_other = w_other, self
 
-        w_iter = space.iter(w_other)
-        for w_item in space.iteriterable(w_iter):
-            if space.is_true(space.contains(self, w_item)):
+        for w_item in space.iteriterable(w_other):
+            if space.contains_w(self, 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