Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r92463:ca8b2b8a0df0
Date: 2017-09-25 03:01 +0100
http://bitbucket.org/pypy/pypy/changeset/ca8b2b8a0df0/
Log: fix translation
diff --git a/pypy/module/cpyext/genobject.py b/pypy/module/cpyext/genobject.py
--- a/pypy/module/cpyext/genobject.py
+++ b/pypy/module/cpyext/genobject.py
@@ -20,6 +20,7 @@
_, PyCoro_CheckExact = build_type_checkers("Coro", Coroutine)
def gi_attach(space, py_obj, w_obj, w_userdata=None):
+ assert isinstance(w_obj, GeneratorIterator)
cts.cast('PyGenObject*', py_obj).c_gi_code = as_pyobj(space, w_obj.pycode)
def gi_realize(space, py_obj):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit