Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49257:cdcdf681bb20
Date: 2011-10-19 16:38 +0200
http://bitbucket.org/pypy/pypy/changeset/cdcdf681bb20/

Log:    no need to check since w_other is always a set here

diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -502,9 +502,6 @@
         return self.erase(result_dict)
 
     def _difference_base(self, w_set, w_other):
-        if not isinstance(w_other, W_BaseSetObject):
-            w_other = w_set._newobj(self.space, w_other)
-
         if self is w_other.strategy:
             strategy = w_set.strategy
             storage = self._difference_unwrapped(w_set, w_other)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to