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

Function _readlines_side_effect

Lib/unittest/mock.py:2986–2989  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

2984 _state = [_read_data, None]
2985
2986 def _readlines_side_effect(*args, **kwargs):
2987 if handle.readlines.return_value is not None:
2988 return handle.readlines.return_value
2989 return _state[0].readlines(*args, **kwargs)
2990
2991 def _read_side_effect(*args, **kwargs):
2992 if handle.read.return_value is not None:

Callers

nothing calls this directly

Calls 1

readlinesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…