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

Function _zlib_runtime_version_tuple

Lib/test/test_zlib.py:22–30  ·  view source on GitHub ↗
(zlib_version=zlib.ZLIB_RUNTIME_VERSION)

Source from the content-addressed store, hash-verified

20
21
22def _zlib_runtime_version_tuple(zlib_version=zlib.ZLIB_RUNTIME_VERSION):
23 # Register "1.2.3" as "1.2.3.0"
24 # or "1.2.0-linux","1.2.0.f","1.2.0.f-linux"
25 v = zlib_version.split('-', 1)[0].split('.')
26 if len(v) < 4:
27 v.append('0')
28 elif not v[-1].isnumeric():
29 v[-1] = '0'
30 return tuple(map(int, v))
31
32
33ZLIB_RUNTIME_VERSION_TUPLE = _zlib_runtime_version_tuple()

Callers 1

test_zlib.pyFile · 0.85

Calls 3

isnumericMethod · 0.80
splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…