MCPcopy
hub / github.com/psycopg/psycopg / _find_lines

Method _find_lines

tools/bump_version.py:249–256  ·  view source on GitHub ↗
(self, pattern: str, lines: list[str])

Source from the content-addressed store, hash-verified

247 return lines[start:end]
248
249 def _find_lines(self, pattern: str, lines: list[str]) -> list[int]:
250 rv = []
251 rex = re.compile(pattern)
252 for i, line in enumerate(lines):
253 if rex.match(line):
254 rv.append(i)
255
256 return rv
257
258
259def main() -> int | None:

Callers 2

_update_history_fileMethod · 0.95
_get_changes_linesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected