MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _fancy_replace

Method _fancy_replace

Lib/difflib.py:945–1041  ·  view source on GitHub ↗

r""" When replacing one block of lines with another, search the blocks for *similar* lines; the best-matching pair (if any) is used as a synch point, and intraline difference marking is done on the similar pair. Lots of work, but often worth it. Example:

(self, a, alo, ahi, b, blo, bhi)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

compareMethod · 0.95
_fancy_helperMethod · 0.95

Calls 11

set_seq2Method · 0.95
set_seq1Method · 0.95
real_quick_ratioMethod · 0.95
quick_ratioMethod · 0.95
ratioMethod · 0.95
_plain_replaceMethod · 0.95
_fancy_helperMethod · 0.95
set_seqsMethod · 0.95
get_opcodesMethod · 0.95
_qformatMethod · 0.95
SequenceMatcherClass · 0.85

Tested by

no test coverage detected