[pypy-svn] r63715 - pypy/trunk/pypy/lib

pedronis at codespeak.net pedronis at codespeak.net
Mon Apr 6 14:17:49 CEST 2009


Author: pedronis
Date: Mon Apr  6 14:17:46 2009
New Revision: 63715

Modified:
   pypy/trunk/pypy/lib/stackless.py
Log:
fix for lib/app_test/test_stackless_pickling.py



Modified: pypy/trunk/pypy/lib/stackless.py
==============================================================================
--- pypy/trunk/pypy/lib/stackless.py	(original)
+++ pypy/trunk/pypy/lib/stackless.py	Mon Apr  6 14:17:46 2009
@@ -493,7 +493,7 @@
         coro_state = a, b, c, None
         coro_state, alive, tempval = rewrite_stackless_primitive(coro_state, self.alive, self.tempval)
         inst_dict = self.__dict__.copy()
-        del inst_dict['tempval']
+        inst_dict.pop('tempval', None)
         return self.__class__, (), (coro_state, alive, tempval, inst_dict)
 
     def __setstate__(self, (coro_state, alive, tempval, inst_dict)):



More information about the Pypy-commit mailing list