diff options
author | 2007-09-11 13:42:51 +0000 | |
---|---|---|
committer | 2007-09-11 13:42:51 +0000 | |
commit | c07d06810085cafccd85a56ffc568881217e34d0 (patch) | |
tree | 1b01a7b6cf82a07ec4cad4207a0134d2f69fb7e2 /pypy/rpython/rweakref.py | |
parent | Prebuilt weakrefs in genc/Boehm. (diff) | |
download | pypy-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.py | 2 |
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, |