MCPcopy Create free account
hub / github.com/pybind/pybind11 / normalize_line_endings

Function normalize_line_endings

tests/extra_python_package/test_files.py:180–181  ·  view source on GitHub ↗
(value: bytes)

Source from the content-addressed store, hash-verified

178
179
180def normalize_line_endings(value: bytes) -> bytes:
181 return value.replace(os.linesep.encode("utf-8"), b"\n")
182
183
184def test_build_sdist(monkeypatch, tmpdir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected