[pypy-commit] pypy cpyext-refactor-methodobject: fix translation

antocuni pypy.commits at gmail.com
Mon Oct 16 19:33:04 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: cpyext-refactor-methodobject
Changeset: r92784:84feef42c1ac
Date: 2017-10-17 01:32 +0200
http://bitbucket.org/pypy/pypy/changeset/84feef42c1ac/

Log:	fix translation

diff --git a/pypy/module/cpyext/__init__.py b/pypy/module/cpyext/__init__.py
--- a/pypy/module/cpyext/__init__.py
+++ b/pypy/module/cpyext/__init__.py
@@ -17,11 +17,11 @@
         method = pypy.module.cpyext.typeobject.get_new_method_def(space)
         # the w_self argument here is a dummy, the only thing done with w_obj
         # is call type() on it
-        objs_w = [cls(space, method, space.w_None) for cls in (
+        objs_w = [cls(space, method, space.w_None) for cls in [
             pypy.module.cpyext.methodobject.W_PyCFunctionObject,
             pypy.module.cpyext.methodobject.W_PyCFunctionObject_NOARGS,
             pypy.module.cpyext.methodobject.W_PyCFunctionObject_O,
-            pypy.module.cpyext.methodobject.W_PyCFunctionObject_VARARGS)]
+            pypy.module.cpyext.methodobject.W_PyCFunctionObject_VARARGS]]
         w_objs = space.newtuple(objs_w)
         space.appexec([w_objs], """(methods):
             from pickle import Pickler


More information about the pypy-commit mailing list