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

Method flush

Tools/unicode/genmap_support.py:27–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self.count += 1
26
27 def flush(self):
28 if not self.cline:
29 return
30 self.buffered.append(''.join(self.cline))
31 self.clen = 0
32 del self.cline[:]
33
34 def printout(self, fp):
35 self.flush()

Callers 2

writeMethod · 0.95
printoutMethod · 0.95

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected