MCPcopy Create free account
hub / github.com/aio-libs/multidict / replace2

Method replace2

tools/upgrade_pythoncapi.py:442–447  ·  view source on GitHub ↗
(regs)

Source from the content-addressed store, hash-verified

440 NAME = "Py_Is"
441
442 def replace2(regs):
443 x = regs.group(1)
444 y = regs.group(2)
445 if y == 'NULL':
446 return regs.group(0)
447 return f'{x} = _Py_StealRef({y});'
448
449 REPLACE = []
450 expr = fr'({EXPR_REGEX})'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected