MCPcopy Create free account
hub / github.com/astral-sh/python-build-standalone / sort_key

Function sort_key

pythonbuild/utils.py:428–432  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

426 # Sort the archive members. We put PYTHON.json first so metadata can
427 # be read without reading the entire archive.
428 def sort_key(v):
429 if v[0].name == "python/PYTHON.json":
430 return 0, v[0].name
431 else:
432 return 1, v[0].name
433
434 members.sort(key=sort_key)
435

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected