Author: Antonio Cuni <[email protected]>
Branch: cpyext-avoid-roundtrip
Changeset: r92833:a1ed00dd3eba
Date: 2017-10-22 20:08 +0200
http://bitbucket.org/pypy/pypy/changeset/a1ed00dd3eba/

Log:    kill this check; all the tests pass

diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -378,12 +378,6 @@
     args_w = space.fixedview(w_args)
     w_subtype = args_w[0]
     w_args = space.newtuple(args_w[1:])
-    # CCC: is this check still needed? I think we can safely remove it now
-    # that we manually handle __args__ inside W_PyCFunctionObject.descr_call,
-    # but we need to double check
-    if w_kwds and not space.is_true(w_kwds):
-        w_kwds = None
-
     subtype = rffi.cast(PyTypeObjectPtr, make_ref(space, w_subtype))
     try:
         w_obj = generic_cpy_call(space, tp_new, subtype, w_args, w_kwds)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to