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

Function _cmp

Lib/filecmp.py:292–296  ·  view source on GitHub ↗
(a, b, sh, abs=abs, cmp=cmp)

Source from the content-addressed store, hash-verified

290# 2 for funny cases (can't stat, NUL bytes, etc.)
291#
292def _cmp(a, b, sh, abs=abs, cmp=cmp):
293 try:
294 return not abs(cmp(a, b, sh))
295 except (OSError, ValueError):
296 return 2
297
298
299# Return a copy with items that occur in skip removed.

Callers 1

cmpfilesFunction · 0.70

Calls 2

cmpFunction · 0.85
absFunction · 0.70

Tested by

no test coverage detected