[pypy-commit] pypy py3k: Simplify code.
mjacob
pypy.commits at gmail.com
Sat Feb 13 09:14:13 EST 2016
Author: Manuel Jacob <me at manueljacob.de>
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
More information about the pypy-commit
mailing list