MCPcopy Index your code
hub / github.com/python/cpython / check_patchlevel_version

Function check_patchlevel_version

PC/layout/support/constants.py:64–67  ·  view source on GitHub ↗
(sources)

Source from the content-addressed store, hash-verified

62
63
64def check_patchlevel_version(sources):
65 got = _read_patchlevel_version(sources)
66 if got != (VER_MAJOR, VER_MINOR, VER_MICRO, VER_FIELD4):
67 return f"{got[0]}.{got[1]}.{got[2]}{_get_suffix(got[3])}"
68
69
70VER_MAJOR, VER_MINOR, VER_MICRO, VER_FIELD4 = _unpack_hexversion()

Callers 1

mainFunction · 0.85

Calls 2

_read_patchlevel_versionFunction · 0.85
_get_suffixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…