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

Function unified_diff

Lib/difflib.py:1158–1223  ·  view source on GitHub ↗

r""" Compare two sequences of lines; generate the delta as a unified diff. Unified 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 4

SequenceMatcherClass · 0.85
_format_range_unifiedFunction · 0.85
get_grouped_opcodesMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected