1. Bart Wiegmans
  2. pypy

Commits

Amaury Forgeot d'Arc  committed 84ff587

Use modern version of @unwrap_spec

  • Participants
  • Parent commits d145986
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/__pypy__/interp_magic.py

View file
-from pypy.interpreter.baseobjspace import ObjSpace, W_Root
 from pypy.interpreter.error import OperationError, wrap_oserror
 from pypy.interpreter.gateway import unwrap_spec
 from rpython.rlib.objectmodel import we_are_translated
     bltn = BuiltinFunction(func)
     return space.wrap(bltn)
 
-@unwrap_spec(ObjSpace, W_Root, str)
+@unwrap_spec(meth=str)
 def lookup_special(space, w_obj, meth):
     """Lookup up a special method on an object."""
     if space.is_oldstyle_instance(w_obj):