(self, content)
| 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 | |
| 115 | class Py_TYPE(Operation): |
nothing calls this directly
no test coverage detected