MCPcopy Create free account
hub / github.com/nodejs/node / _version_join

Function _version_join

tools/gyp/pylib/packaging/specifiers.py:668–676  ·  view source on GitHub ↗

Join split version components into a version string. This function assumes the input came from :func:`_version_split`, where the first component must be the epoch (either empty or numeric), and all other components numeric.

(components: List[str])

Source from the content-addressed store, hash-verified

666
667
668def _version_join(components: List[str]) -> str:
669 """Join split version components into a version string.
670
671 This function assumes the input came from :func:`_version_split`, where the
672 first component must be the epoch (either empty or numeric), and all other
673 components numeric.
674 """
675 epoch, *rest = components
676 return f"{epoch}!{'.'.join(rest)}"
677
678
679def _is_not_suffix(segment: str) -> bool:

Callers 1

_compare_compatibleMethod · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected