Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49189:53f140142fc5
Date: 2011-07-19 14:02 +0200
http://bitbucket.org/pypy/pypy/changeset/53f140142fc5/

Log:    _is_sane_hash was renamed to _never_equal_to_string

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
@@ -325,10 +325,10 @@
             w_set.add(w_key)
 
     def delitem(self, w_set, w_item):
-        from pypy.objspace.std.dictmultiobject import _is_sane_hash
+        from pypy.objspace.std.dictmultiobject import _never_equal_to_string
         d = self.cast_from_void_star(w_set.sstorage)
         if not self.is_correct_type(w_item):
-            if _is_sane_hash(self.space, self.space.type(w_item)):
+            if _never_equal_to_string(self.space, self.space.type(w_item)):
                 return False
             w_set.switch_to_object_strategy(self.space)
             return w_set.delitem(w_item)
@@ -358,9 +358,9 @@
         return keys_w
 
     def has_key(self, w_set, w_key):
-        from pypy.objspace.std.dictmultiobject import _is_sane_hash
+        from pypy.objspace.std.dictmultiobject import _never_equal_to_string
         if not self.is_correct_type(w_key):
-            if not _is_sane_hash(self.space, self.space.type(w_key)):
+            if not _never_equal_to_string(self.space, self.space.type(w_key)):
                 w_set.switch_to_object_strategy(self.space)
                 return w_set.has_key(w_key)
             return False
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to