MCPcopy Create free account
hub / github.com/PageBot/PageBot / _set_context

Method _set_context

Lib/pagebot/contexts/basecontext/babelstring.py:134–140  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

132 return context
133
134 def _set_context(self, context):
135 if context is not None:
136 context = weakref.ref(context)
137 self._context = context
138 self.reset() # Clear cache of previous context
139 for run in self.runs: # Reset the run context too.
140 run.context = context
141
142 context = property(_get_context, _set_context)
143

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected