MCPcopy Index your code
hub / github.com/python/cpython / restore

Function restore

Doc/includes/ndiff.py:106–108  ·  view source on GitHub ↗
(which)

Source from the content-addressed store, hash-verified

104# file2 (which=='2') to stdout
105
106def restore(which):
107 restored = difflib.restore(sys.stdin.readlines(), which)
108 sys.stdout.writelines(restored)
109
110if __name__ == '__main__':
111 main(sys.argv[1:])

Callers 1

mainFunction · 0.70

Calls 3

restoreMethod · 0.45
readlinesMethod · 0.45
writelinesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…