MCPcopy
hub / github.com/scrapinghub/splash / __init__

Method __init__

splash/qtrender_lua.py:357–366  ·  view source on GitHub ↗

:param splash: Splash object :param source: function source code

(self, splash: 'Splash', source: str)

Source from the content-addressed store, hash-verified

355 """
356
357 def __init__(self, splash: 'Splash', source: str) -> None:
358 """
359 :param splash: Splash object
360 :param source: function source code
361 """
362 self.lua = splash.lua
363 self.tab = splash.tab
364 self.source = escape_js(source)
365 self.exceptions = splash.exceptions
366 self.splash = splash
367
368 @exceptions_as_return_values
369 @can_raise

Callers

nothing calls this directly

Calls 1

escape_jsFunction · 0.90

Tested by

no test coverage detected