1. Bart Wiegmans
  2. pypy

Commits

Maciej Fijalkowski  committed bcf984f Merge

merge

  • Participants
  • Parent commits 0139e19, 84ff587
  • 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):