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

Method __input_fd_set

Lib/_pyrepl/unix_console.py:831–843  ·  view source on GitHub ↗
(
        self,
        state: TermState,
        ignore: AbstractSet[int] = _error_codes_to_ignore,
    )

Source from the content-addressed store, hash-verified

829 time.sleep(float(delay) / 1000.0)
830
831 def __input_fd_set(
832 self,
833 state: TermState,
834 ignore: AbstractSet[int] = _error_codes_to_ignore,
835 ) -> bool:
836 try:
837 tcsetattr(self.input_fd, termios.TCSADRAIN, state)
838 except termios.error as te:
839 if te.args[0] not in ignore:
840 raise
841 return False
842 else:
843 return True

Callers 3

__init__Method · 0.95
prepareMethod · 0.95
restoreMethod · 0.95

Calls 1

tcsetattrFunction · 0.85

Tested by

no test coverage detected