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

Method close

Lib/email/feedparser.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 return self._eofstack.pop()
70
71 def close(self):
72 # Don't forget any trailing partial line.
73 self._partial.seek(0)
74 self.pushlines(self._partial.readlines())
75 self._partial.seek(0)
76 self._partial.truncate()
77 self._closed = True
78
79 def readline(self):
80 if not self._lines:

Callers

nothing calls this directly

Calls 4

pushlinesMethod · 0.95
seekMethod · 0.45
readlinesMethod · 0.45
truncateMethod · 0.45

Tested by

no test coverage detected