1. Pypy
  2. Untitled project
  3. pypy

Commits

Samuele Pedroni  committed 6d30865

make this translate again.

  • Participants
  • Parent commits 1a3b2c0
  • Branches default

Comments (0)

Files changed (1)

File pypy/objspace/thunk.py

View file
  • Ignore whitespace
 app_become = gateway.interp2app(become)
 
 def lazy(space, w_callable):
-    meth = Method(space, space.wrap(app_thunk),
+    meth = Method(space, space.w_fn_thunk,
                   w_callable, space.type(w_callable))
     return space.wrap(meth)
 app_lazy = gateway.interp2app(lazy)
     space = std.Space(*args, **kwds)
     patch_space_in_place(space, 'thunk', proxymaker)
     w_pypymagic = space.getbuiltinmodule("pypymagic")
+    space.w_fn_thunk = space.wrap(app_thunk)
     space.setattr(w_pypymagic, space.wrap('thunk'),
-                  space.wrap(app_thunk))
+                  space.w_fn_thunk)
     space.setattr(w_pypymagic, space.wrap('is_thunk'),
                   space.wrap(app_is_thunk))
     space.setattr(w_pypymagic, space.wrap('become'),