MCPcopy Index your code
hub / github.com/python/cpython / _preprocess

Method _preprocess

Tools/jit/_optimizers.py:248–254  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

246 block.fallthrough = False
247
248 def _preprocess(self, text: str) -> str:
249 # Override this method to do preprocessing of the textual assembly.
250 # In all cases, replace references to the _JIT_CONTINUE symbol with
251 # references to a local _JIT_CONTINUE label (which we will add later):
252 continue_symbol = rf"\b{re.escape(self.symbol_prefix)}_JIT_CONTINUE\b"
253 continue_label = f"{self.label_prefix}_JIT_CONTINUE"
254 return re.sub(continue_symbol, continue_label, text)
255
256 def _parse_instruction(self, line: str) -> Instruction:
257 target = None

Callers 1

__post_init__Method · 0.95

Calls 2

escapeMethod · 0.80
subMethod · 0.45

Tested by

no test coverage detected