Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49171:10a1be5db44b
Date: 2011-05-20 15:39 +0200
http://bitbucket.org/pypy/pypy/changeset/10a1be5db44b/
Log: this is the same but hopefully it will satisfy the annotator
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
@@ -663,7 +663,7 @@
if w_iterable is None :
w_set.strategy = space.fromcache(EmptySetStrategy)
- w_set.sstorage =
w_set.strategy.cast_to_void_star(None)#w_set.strategy.get_empty_storage()
+ w_set.sstorage = w_set.strategy.get_empty_storage()
return
if isinstance(w_iterable, W_BaseSetObject):
@@ -677,7 +677,7 @@
if len(w_iterable) == 0:
w_set.strategy = space.fromcache(EmptySetStrategy)
- w_set.sstorage = w_set.strategy.cast_to_void_star(None)
+ w_set.sstorage = w_set.strategy.get_empty_storage()
return
# check for integers
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit