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

Function context_diff

Lib/difflib.py:1242–1314  ·  view source on GitHub ↗

r""" Compare two sequences of lines; generate the delta as a context diff. Context diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to three. By default, the diff control lines (those with ***

(a, b, fromfile='', tofile='',
                 fromfiledate='', tofiledate='', n=3, lineterm='\n')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

dictFunction · 0.85
SequenceMatcherClass · 0.85
_format_range_contextFunction · 0.85
get_grouped_opcodesMethod · 0.80
anyFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected