MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _normalize

Function _normalize

tests/compliance/diff.py:45–49  ·  view source on GitHub ↗

Normalize a value for comparison (sort lists so ordering doesn't matter).

(v)

Source from the content-addressed store, hash-verified

43
44
45def _normalize(v):
46 """Normalize a value for comparison (sort lists so ordering doesn't matter)."""
47 if isinstance(v, list):
48 return sorted(v, key=str)
49 return v
50
51
52def diff_rows(before_row, after_row, headers=None):

Callers 1

diff_rowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected