MCPcopy Create free account
hub / github.com/EasyIME/PIME / CountingStderr

Class CountingStderr

python/python3/tornado/test/runtests.py:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100class CountingStderr(io.IOBase):
101 def __init__(self, real):
102 self.real = real
103 self.byte_count = 0
104
105 def write(self, data):
106 self.byte_count += len(data)
107 return self.real.write(data)
108
109 def flush(self):
110 return self.real.flush()
111
112
113def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68