aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2007-09-11 13:42:51 +0000
committerArmin Rigo <arigo@tunes.org>2007-09-11 13:42:51 +0000
commitc07d06810085cafccd85a56ffc568881217e34d0 (patch)
tree1b01a7b6cf82a07ec4cad4207a0134d2f69fb7e2 /pypy/rpython/rweakref.py
parentPrebuilt weakrefs in genc/Boehm. (diff)
downloadpypy-c07d06810085cafccd85a56ffc568881217e34d0.tar.gz
pypy-c07d06810085cafccd85a56ffc568881217e34d0.tar.bz2
pypy-c07d06810085cafccd85a56ffc568881217e34d0.zip
Vague attempt at Python 2.3 compatibility.
Diffstat (limited to 'pypy/rpython/rweakref.py')
-rw-r--r--pypy/rpython/rweakref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pypy/rpython/rweakref.py b/pypy/rpython/rweakref.py
index d226ecdf01..111d079a9b 100644
--- a/pypy/rpython/rweakref.py
+++ b/pypy/rpython/rweakref.py
@@ -38,7 +38,7 @@ class WeakRefRepr(Repr):
return hop.genop('weakref_deref', [v_wref], resulttype=hop.r_result)
def convert_const(self, value):
- assert isinstance(value, weakref.ref)
+ assert isinstance(value, weakref.ReferenceType)
instance = value()
bk = self.rtyper.annotator.bookkeeper
# obscure! if the annotator hasn't seen this object before,