[pypy-commit] pypy set-strategies: satisfying the annotator
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:50:02 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49174:5deedc46a92c
Date: 2011-05-20 16:22 +0200
http://bitbucket.org/pypy/pypy/changeset/5deedc46a92c/
Log: satisfying 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
@@ -93,8 +93,8 @@
def switch_to_object_strategy(self, space):
d = self.strategy.getdict_w(self)
- self.strategy = space.fromcache(ObjectSetStrategy)
- self.sstorage = self.strategy.cast_to_void_star(d)
+ self.strategy = strategy = space.fromcache(ObjectSetStrategy)
+ self.sstorage = strategy.cast_to_void_star(d)
def switch_to_empty_strategy(self):
self.strategy = self.space.fromcache(EmptySetStrategy)
More information about the pypy-commit
mailing list