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

Function changed_lines

tools/codegen_diff.py:198–203  ·  view source on GitHub ↗
(before, after)

Source from the content-addressed store, hash-verified

196
197
198def changed_lines(before, after):
199 return sum(
200 1
201 for line in difflib.unified_diff(before, after, n=0)
202 if line[:1] in "+-" and line[:3] not in ("+++", "---")
203 )
204
205
206def describe(name, before, after):

Callers 1

describeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected