[pypy-commit] pypy default: Fix translation

amauryfa noreply at buildbot.pypy.org
Thu Feb 16 00:18:35 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r52533:f272bf10ef94
Date: 2012-02-16 00:17 +0100
http://bitbucket.org/pypy/pypy/changeset/f272bf10ef94/

Log:	Fix translation

diff --git a/pypy/module/cpyext/pystate.py b/pypy/module/cpyext/pystate.py
--- a/pypy/module/cpyext/pystate.py
+++ b/pypy/module/cpyext/pystate.py
@@ -61,6 +61,7 @@
     return MemoryCapsule
 
 def ThreadState_dealloc(ts, space):
+    assert space is not None
     Py_DecRef(space, ts.c_dict)
 ThreadStateCapsule = encapsulator(PyThreadState.TO,
                                   dealloc=ThreadState_dealloc)


More information about the pypy-commit mailing list