MCPcopy Index your code
hub / github.com/RustPython/RustPython / getstate

Method getstate

Lib/_pyio.py:1983–1992  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1981 return output
1982
1983 def getstate(self):
1984 if self.decoder is None:
1985 buf = b""
1986 flag = 0
1987 else:
1988 buf, flag = self.decoder.getstate()
1989 flag <<= 1
1990 if self.pendingcr:
1991 flag |= 1
1992 return buf, flag
1993
1994 def setstate(self, state):
1995 buf, flag = state

Callers 3

_read_chunkMethod · 0.45
tellMethod · 0.45
getvalueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected