MCPcopy Index your code
hub / github.com/scrapinghub/splash / emits_lua_objects_wrapper

Function emits_lua_objects_wrapper

splash/qtrender_lua.py:159–164  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

157 """
158 @functools.wraps(meth)
159 def emits_lua_objects_wrapper(self, *args, **kwargs):
160 res = meth(self, *args, **kwargs)
161 if isinstance(res, PyResult):
162 res.result = tuple(self.lua.python2lua(v) for v in res.result)
163 return res
164 return self.lua.python2lua(res)
165
166 return emits_lua_objects_wrapper
167

Callers

nothing calls this directly

Calls 1

python2luaMethod · 0.80

Tested by

no test coverage detected