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

Function _readline

Lib/test/test_pty.py:66–69  ·  view source on GitHub ↗

Read one line. May block forever if no newline is read.

(fd)

Source from the content-addressed store, hash-verified

64 return data
65
66def _readline(fd):
67 """Read one line. May block forever if no newline is read."""
68 reader = io.FileIO(fd, mode='rb', closefd=False)
69 return reader.readline()
70
71def expectedFailureIfStdinIsTTY(fun):
72 # avoid isatty()

Callers 1

test_openptyMethod · 0.85

Calls 1

readlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…