MCPcopy
hub / github.com/pallets/werkzeug / unicodecmp

Function unicodecmp

examples/cupoftee/utils.py:7–11  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

5
6
7def unicodecmp(a, b):
8 x, y = map(_sort_re.search, [a, b])
9 x = (x.group() if x else a).lower()
10 y = (y.group() if y else b).lower()
11 return (x > y) - (x < y)

Callers 2

__cmp__Method · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected