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

Method _check_newline

Lib/_pyio.py:2112–2116  ·  view source on GitHub ↗
(self, newline)

Source from the content-addressed store, hash-verified

2110 line_buffering, write_through)
2111
2112 def _check_newline(self, newline):
2113 if newline is not None and not isinstance(newline, str):
2114 raise TypeError("illegal newline type: %r" % (type(newline),))
2115 if newline not in (None, "", "\n", "\r", "\r\n"):
2116 raise ValueError("illegal newline value: %r" % (newline,))
2117
2118 def _configure(self, encoding=None, errors=None, newline=None,
2119 line_buffering=False, write_through=False):

Callers 2

__init__Method · 0.95
reconfigureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected