MCPcopy Index your code
hub / github.com/RustPython/RustPython / _do_cmp

Function _do_cmp

Lib/filecmp.py:75–84  ·  view source on GitHub ↗
(f1, f2)

Source from the content-addressed store, hash-verified

73 st.st_mtime)
74
75def _do_cmp(f1, f2):
76 bufsize = BUFSIZE
77 with open(f1, 'rb') as fp1, open(f2, 'rb') as fp2:
78 while True:
79 b1 = fp1.read(bufsize)
80 b2 = fp2.read(bufsize)
81 if b1 != b2:
82 return False
83 if not b1:
84 return True
85
86# Directory comparison class.
87#

Callers 1

cmpFunction · 0.85

Calls 2

openFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected