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

Method is_eof

Lib/getpass.py:308–310  ·  view source on GitHub ↗

Check if *char* is a file terminator.

(self, char)

Source from the content-addressed store, hash-verified

306 return char in ('\r', '\n')
307
308 def is_eof(self, char):
309 """Check if *char* is a file terminator."""
310 return char == self.ctrl['EOF']
311
312 def handle_move_start(self):
313 """Move cursor to beginning (Ctrl+A)."""

Callers 1

readlineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected