MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / restore

Function restore

tools/python-3.11.9-amd64/Tools/scripts/ndiff.py:119–121  ·  view source on GitHub ↗
(which)

Source from the content-addressed store, hash-verified

117# file2 (which=='2') to stdout
118
119def restore(which):
120 restored = difflib.restore(sys.stdin.readlines(), which)
121 sys.stdout.writelines(restored)
122
123if __name__ == '__main__':
124 args = 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