MCPcopy Index your code
hub / github.com/RustPython/RustPython / _newline_convert

Function _newline_convert

Lib/doctest.py:241–243  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

239 raise TypeError("Expected a module, string, or None")
240
241def _newline_convert(data):
242 # The IO module provides a handy decoder for universal newline conversion
243 return IncrementalNewlineDecoder(None, True).decode(data, True)
244
245def _load_testfile(filename, package, module_relative, encoding):
246 if module_relative:

Callers 1

_load_testfileFunction · 0.85

Calls 2

decodeMethod · 0.45

Tested by

no test coverage detected