Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r94208:eb7ebd3110b0
Date: 2018-04-01 08:52 +0300
http://bitbucket.org/pypy/pypy/changeset/eb7ebd3110b0/

Log:    remove redundant code, this is done in track_reference

diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py
--- a/pypy/module/cpyext/pyobject.py
+++ b/pypy/module/cpyext/pyobject.py
@@ -128,9 +128,6 @@
                             w_type)
             raise
         track_reference(space, obj, w_obj)
-        if w_type.flag_cpytype:
-            assert isinstance(w_obj, W_BaseCPyObject)
-            w_obj._cpy_ref = obj
         return w_obj
 
 typedescr_cache = {}
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to