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

Method getstate

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

Source from the content-addressed store, hash-verified

2005 return output
2006
2007 def getstate(self):
2008 if self.decoder is None:
2009 buf = b""
2010 flag = 0
2011 else:
2012 buf, flag = self.decoder.getstate()
2013 flag <<= 1
2014 if self.pendingcr:
2015 flag |= 1
2016 return buf, flag
2017
2018 def setstate(self, state):
2019 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