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

Method patch

tools/upgrade_pythoncapi.py:106–112  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

104 self.patcher = patcher
105
106 def patch(self, content):
107 old_content = content
108 for regex, replace in self.REPLACE:
109 content = regex.sub(replace, content)
110 if content != old_content and self.NEED_PYTHONCAPI_COMPAT:
111 content = self.patcher.add_pythoncapi_compat(content)
112 return content
113
114
115class Py_TYPE(Operation):

Callers

nothing calls this directly

Calls 1

add_pythoncapi_compatMethod · 0.80

Tested by

no test coverage detected