MCPcopy Index your code
hub / github.com/microsoft/playwright-python / chromium_version_less_than

Function chromium_version_less_than

tests/utils.py:27–35  ·  view source on GitHub ↗
(a: str, b: str)

Source from the content-addressed store, hash-verified

25
26
27def chromium_version_less_than(a: str, b: str) -> bool:
28 left = list(map(int, a.split(".")))
29 right = list(map(int, b.split(".")))
30 for i in range(4):
31 if left[i] > right[i]:
32 return False
33 if left[i] < right[i]:
34 return True
35 return False

Callers 2

Calls

no outgoing calls

Tested by 2