MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _code

Function _code

tools/python-3.11.9-amd64/Lib/re/_compiler.py:573–586  ·  view source on GitHub ↗
(p, flags)

Source from the content-addressed store, hash-verified

571 return isinstance(obj, (str, bytes))
572
573def _code(p, flags):
574
575 flags = p.state.flags | flags
576 code = []
577
578 # compile info block
579 _compile_info(code, p, flags)
580
581 # compile the pattern
582 _compile(code, p.data, flags)
583
584 code.append(SUCCESS)
585
586 return code
587
588def _hex_code(code):
589 return '[%s]' % ', '.join('%#0*x' % (_sre.CODESIZE*2+2, x) for x in code)

Callers 1

compileFunction · 0.85

Calls 3

_compile_infoFunction · 0.85
_compileFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected