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

Method is_eol

Lib/getpass.py:304–306  ·  view source on GitHub ↗

Check if *char* is a line terminator.

(self, char)

Source from the content-addressed store, hash-verified

302 self.stream.flush()
303
304 def is_eol(self, char):
305 """Check if *char* is a line terminator."""
306 return char in ('\r', '\n')
307
308 def is_eof(self, char):
309 """Check if *char* is a file terminator."""

Callers 1

readlineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected