MCPcopy
hub / github.com/jisaacks/GitGutter / _fancy_helper

Function _fancy_helper

modules/popup/differ.py:127–138  ·  view source on GitHub ↗
(a, alo, ahi, b, blo, bhi)

Source from the content-addressed store, hash-verified

125
126
127def _fancy_helper(a, alo, ahi, b, blo, bhi):
128 if alo < ahi:
129 if blo < bhi:
130 g = _fancy_replace(a, alo, ahi, b, blo, bhi)
131 else:
132 g = _dump_lines('del', a, alo, ahi)
133 elif blo < bhi:
134 g = _dump_lines('ins', b, blo, bhi)
135 else:
136 g = []
137
138 yield from g
139
140
141def _dump_lines(tag, x, lo, hi):

Callers 1

_fancy_replaceFunction · 0.85

Calls 2

_fancy_replaceFunction · 0.85
_dump_linesFunction · 0.85

Tested by

no test coverage detected